Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ccd99a5

Browse files
committed
<sys/socket.h> requires <sys/types.h> to already have been included
on some platforms.
1 parent 889dd3c commit ccd99a5

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

config/c-library.m4

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Macros that test various C library quirks
2-
# $Header: /cvsroot/pgsql/config/c-library.m4,v 1.20 2003/06/12 07:36:51 momjian Exp $
2+
# $Header: /cvsroot/pgsql/config/c-library.m4,v 1.21 2003/06/12 16:05:10 tgl Exp $
33

44

55
# PGAC_VAR_INT_TIMEZONE
@@ -104,7 +104,8 @@ AC_DEFUN([PGAC_STRUCT_SOCKADDR_UN],
104104
# it is missing then one could define it.
105105
AC_DEFUN([PGAC_STRUCT_SOCKADDR_STORAGE],
106106
[AC_CHECK_TYPES([struct sockaddr_storage], [], [],
107-
[#ifdef HAVE_SYS_SOCKET_H
107+
[#include <sys/types.h>
108+
#ifdef HAVE_SYS_SOCKET_H
108109
#include <sys/socket.h>
109110
#endif
110111
])])# PGAC_STRUCT_SOCKADDR_STORAGE

configure

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9906,6 +9906,7 @@ else
99069906
cat >conftest.$ac_ext <<_ACEOF
99079907
#line $LINENO "configure"
99089908
#include "confdefs.h"
9909+
#include <sys/types.h>
99099910
#ifdef HAVE_SYS_SOCKET_H
99109911
#include <sys/socket.h>
99119912
#endif
@@ -10030,6 +10031,7 @@ else
1003010031
#line $LINENO "configure"
1003110032
#include "confdefs.h"
1003210033
#include <sys/param.h>
10034+
#include <sys/types.h>
1003310035
#include <sys/socket.h>
1003410036
#include <sys/ucred.h>
1003510037
@@ -10089,6 +10091,7 @@ else
1008910091
#line $LINENO "configure"
1009010092
#include "confdefs.h"
1009110093
#include <sys/param.h>
10094+
#include <sys/types.h>
1009210095
#include <sys/socket.h>
1009310096
#include <sys/ucred.h>
1009410097
@@ -10148,6 +10151,7 @@ else
1014810151
#line $LINENO "configure"
1014910152
#include "confdefs.h"
1015010153
#include <sys/param.h>
10154+
#include <sys/types.h>
1015110155
#include <sys/socket.h>
1015210156
#include <sys/ucred.h>
1015310157

configure.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $Header: /cvsroot/pgsql/configure.in,v 1.259 2003/06/12 07:36:50 momjian Exp $
2+
dnl $Header: /cvsroot/pgsql/configure.in,v 1.260 2003/06/12 16:05:09 tgl Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -794,6 +794,7 @@ PGAC_STRUCT_ADDRINFO
794794

795795
AC_CHECK_TYPES([struct cmsgcred, struct fcred, struct sockcred], [], [],
796796
[#include <sys/param.h>
797+
#include <sys/types.h>
797798
#include <sys/socket.h>
798799
#include <sys/ucred.h>])
799800

0 commit comments

Comments
 (0)