Index: configure.in =================================================================== RCS file: /projects/cvsroot/pgsql-server/configure.in,v retrieving revision 1.297 diff -u -r1.297 configure.in --- configure.in 22 Oct 2003 04:16:39 -0000 1.297 +++ configure.in 24 Oct 2003 22:21:32 -0000 @@ -735,7 +735,17 @@ ## dnl sys/socket.h is required by AC_FUNC_ACCEPT_ARGTYPES -AC_CHECK_HEADERS([crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h]) +AC_CHECK_HEADERS([crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h]) + +# Some systems need (and ?) before +AC_CHECK_HEADERS([sys/un.h], [], [], +[#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +]) # At least on IRIX, cpp test for netinet/tcp.h will fail unless # netinet/in.h is included first. Index: config/c-library.m4 =================================================================== RCS file: /projects/cvsroot/pgsql-server/config/c-library.m4,v retrieving revision 1.23 diff -u -r1.23 c-library.m4 --- config/c-library.m4 23 Jul 2003 23:30:39 -0000 1.23 +++ config/c-library.m4 24 Oct 2003 22:21:32 -0000 @@ -91,7 +91,12 @@ # (Requires test for !) AC_DEFUN([PGAC_STRUCT_SOCKADDR_UN], [AC_CHECK_TYPES([struct sockaddr_un], [AC_DEFINE(HAVE_UNIX_SOCKETS, 1, [Define to 1 if you have unix sockets.])], [], -[#include +[#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif #ifdef HAVE_SYS_UN_H #include #endif