Simon Josefsson wrote: > +#define _SS_PADSIZE (_SS_SIZE - (max (sizeof (sa_family_t), \ > + alignof (__ss_aligntype)) \
'max' is not a predefined macro. I'm applying this fix: 2009-05-08 Bruno Haible <br...@clisp.org> * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression instead of 'max'. *** lib/sys_socket.in.h.orig 2009-05-08 23:58:45.000000000 +0200 --- lib/sys_socket.in.h 2009-05-08 23:58:11.000000000 +0200 *************** *** 44,57 **** #define _GL_SYS_SOCKET_H #if !...@have_struct_sockaddr_storage@ ! #include <alignof.h> /* Code taken from glibc sysdeps/unix/sysv/linux/bits/socket.h on 2009-05-08, licensed under LGPLv2.1+, plus portability fixes. */ ! #define __ss_aligntype unsigned long int ! #define _SS_SIZE 256 ! #define _SS_PADSIZE (_SS_SIZE - (max (sizeof (sa_family_t), \ ! alignof (__ss_aligntype)) \ ! + sizeof (__ss_aligntype))) struct sockaddr_storage { --- 44,59 ---- #define _GL_SYS_SOCKET_H #if !...@have_struct_sockaddr_storage@ ! # include <alignof.h> /* Code taken from glibc sysdeps/unix/sysv/linux/bits/socket.h on 2009-05-08, licensed under LGPLv2.1+, plus portability fixes. */ ! # define __ss_aligntype unsigned long int ! # define _SS_SIZE 256 ! # define _SS_PADSIZE \ ! (_SS_SIZE - ((sizeof (sa_family_t) >= alignof (__ss_aligntype) \ ! ? sizeof (sa_family_t) \ ! : alignof (__ss_aligntype)) \ ! + sizeof (__ss_aligntype))) struct sockaddr_storage {