diff options
| author | Tom Lane | 2003-06-12 16:05:10 +0000 |
|---|---|---|
| committer | Tom Lane | 2003-06-12 16:05:10 +0000 |
| commit | ccd99a5eb52b7dfb7fd5501a6b645715c409c774 (patch) | |
| tree | a9c2260addc577a1251d4d4afb869b876f74b04d /config/c-library.m4 | |
| parent | 889dd3c00d1ddd9b2ca77d0154cf52fc664a2049 (diff) | |
<sys/socket.h> requires <sys/types.h> to already have been included
on some platforms.
Diffstat (limited to 'config/c-library.m4')
| -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 bd632ed7cd..bfe33ff062 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.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 |
