mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-05 19:09:58 +08:00
On some systems <sys/types.h> must be included before <sys/socket.h>.
This commit is contained in:
parent
ae02cf3c44
commit
e138630251
@ -1,5 +1,5 @@
|
|||||||
# Macros that test various C library quirks
|
# 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
|
# PGAC_VAR_INT_TIMEZONE
|
||||||
@ -72,7 +72,8 @@ AC_DEFUN([PGAC_STRUCT_SOCKADDR_UN],
|
|||||||
# If `struct addrinfo' exists, define HAVE_STRUCT_ADDRINFO.
|
# If `struct addrinfo' exists, define HAVE_STRUCT_ADDRINFO.
|
||||||
AC_DEFUN([PGAC_STRUCT_ADDRINFO],
|
AC_DEFUN([PGAC_STRUCT_ADDRINFO],
|
||||||
[AC_CHECK_TYPES([struct addrinfo], [], [],
|
[AC_CHECK_TYPES([struct addrinfo], [], [],
|
||||||
[#include <sys/socket.h>
|
[#include <sys/types.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
])])# PGAC_STRUCT_ADDRINFO
|
])])# PGAC_STRUCT_ADDRINFO
|
||||||
|
|
||||||
|
1
configure
vendored
1
configure
vendored
@ -9360,6 +9360,7 @@ else
|
|||||||
cat >conftest.$ac_ext <<_ACEOF
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
#line $LINENO "configure"
|
#line $LINENO "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user