on some platforms.
# Macros that test various C library quirks
-# $Header: /cvsroot/pgsql/config/c-library.m4,v 1.20 2003/06/12 07:36:51 momjian Exp $
+# $Header: /cvsroot/pgsql/config/c-library.m4,v 1.21 2003/06/12 16:05:10 tgl Exp $
# PGAC_VAR_INT_TIMEZONE
# it is missing then one could define it.
AC_DEFUN([PGAC_STRUCT_SOCKADDR_STORAGE],
[AC_CHECK_TYPES([struct sockaddr_storage], [], [],
-[#ifdef HAVE_SYS_SOCKET_H
+[#include <sys/types.h>
+#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
])])# PGAC_STRUCT_SOCKADDR_STORAGE
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
+#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/param.h>
+#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ucred.h>
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/param.h>
+#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ucred.h>
#line $LINENO "configure"
#include "confdefs.h"
#include <sys/param.h>
+#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ucred.h>
dnl Process this file with autoconf to produce a configure script.
-dnl $Header: /cvsroot/pgsql/configure.in,v 1.259 2003/06/12 07:36:50 momjian Exp $
+dnl $Header: /cvsroot/pgsql/configure.in,v 1.260 2003/06/12 16:05:09 tgl Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
AC_CHECK_TYPES([struct cmsgcred, struct fcred, struct sockcred], [], [],
[#include <sys/param.h>
+#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ucred.h>])