]> granicus.if.org Git - postgresql/commitdiff
<sys/socket.h> requires <sys/types.h> to already have been included
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 12 Jun 2003 16:05:10 +0000 (16:05 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 12 Jun 2003 16:05:10 +0000 (16:05 +0000)
on some platforms.

config/c-library.m4
configure
configure.in

index bd632ed7cd36b6bb9f36c00403d4c3671a331fa3..bfe33ff062cc5a7202ac86b9cdffa463780ee5ad 100644 (file)
@@ -1,5 +1,5 @@
 # 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
@@ -104,7 +104,8 @@ AC_DEFUN([PGAC_STRUCT_SOCKADDR_UN],
 # 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
index 2056980885ac069d705c10f55484421fa2fe323f..35f42434367dd2a38223554d5f12234efbd72f46 100755 (executable)
--- a/configure
+++ b/configure
@@ -9906,6 +9906,7 @@ else
   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
@@ -10030,6 +10031,7 @@ else
 #line $LINENO "configure"
 #include "confdefs.h"
 #include <sys/param.h>
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/ucred.h>
 
@@ -10089,6 +10091,7 @@ else
 #line $LINENO "configure"
 #include "confdefs.h"
 #include <sys/param.h>
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/ucred.h>
 
@@ -10148,6 +10151,7 @@ else
 #line $LINENO "configure"
 #include "confdefs.h"
 #include <sys/param.h>
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/ucred.h>
 
index 8ccff55630980891128a293a3f4a9547cbb57fed..46647f11e1bba1ac84b3082fc2941c8f94596bc2 100644 (file)
@@ -1,5 +1,5 @@
 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
@@ -794,6 +794,7 @@ PGAC_STRUCT_ADDRINFO
 
 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>])