Boy, I'm bit out of my league here when it comes to portability macros. I got a huge cvs update of both subversion and apr this morning, and while apr builds cleanly, the very first subversion file I try to compile (svn_string.c) that includes "apr.h" gives me this error:
--------------------------------------------- In file included from ../../apr/include/apr.h:96, from ../../apr/include/apr_lib.h:58, from svn_string.c:18: /usr/include/sys/socket.h:47: syntax error before `sa_family_t' /usr/include/sys/socket.h:47: warning: data definition has no type or storage class /usr/include/sys/socket.h:155: syntax error before `u_char' /usr/include/sys/socket.h:166: syntax error before `u_short' /usr/include/sys/socket.h:180: syntax error before `u_char' /usr/include/sys/socket.h:182: `u_char' undeclared here (not in a function) /usr/include/sys/socket.h:184: `u_char' undeclared here (not in a function) /usr/include/sys/socket.h:184: `u_char' undeclared here (not in a function) /usr/include/sys/socket.h:387: syntax error before `u_short' gmake[3]: *** [svn_string.lo] Error 1 --------------------------------------------- The problem is that apparently u_char isn't defined before including sys/socket.h (??) I went so far as to irrationally remove my apr/ subdir and checkout a fresh copy; still no dice. I need a clue here.