diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-04-12 23:25:42 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-04-12 23:25:42 +0000 |
| commit | e138630251c338981bbd2dd15f0da5f22a206c70 (patch) | |
| tree | 5562a91d15c86b003db5baf3233cab0d432920d6 /config | |
| parent | ae02cf3c44a337860d2c1043162176718666cf95 (diff) | |
| download | postgresql-e138630251c338981bbd2dd15f0da5f22a206c70.tar.gz | |
On some systems <sys/types.h> must be included before <sys/socket.h>.
Diffstat (limited to 'config')
| -rw-r--r-- | config/c-library.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/c-library.m4 b/config/c-library.m4 index 0def9c0e69..44a3668636 100644 --- a/config/c-library.m4 +++ b/config/c-library.m4 @@ -1,5 +1,5 @@ # Macros that test various C library quirks -# $Header: /cvsroot/pgsql/config/c-library.m4,v 1.17 2003/04/06 22:45:22 petere Exp $ +# $Header: /cvsroot/pgsql/config/c-library.m4,v 1.18 2003/04/12 23:25:42 tgl Exp $ # PGAC_VAR_INT_TIMEZONE @@ -72,7 +72,8 @@ AC_DEFUN([PGAC_STRUCT_SOCKADDR_UN], # If `struct addrinfo' exists, define HAVE_STRUCT_ADDRINFO. AC_DEFUN([PGAC_STRUCT_ADDRINFO], [AC_CHECK_TYPES([struct addrinfo], [], [], -[#include <sys/socket.h> +[#include <sys/types.h> +#include <sys/socket.h> #include <netdb.h> ])])# PGAC_STRUCT_ADDRINFO |
