mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Fix configure probe for sys/ucred.h.
The configure script's test for <sys/ucred.h> did not work on OpenBSD,
because on that platform <sys/param.h> has to be included first.
As a result, socket peer authentication was disabled on that platform.
Problem introduced in commit be4585b1c2
.
Andres Freund, slightly simplified by me.
This commit is contained in:
14
configure.in
14
configure.in
@ -982,9 +982,9 @@ AC_SUBST(OSSP_UUID_LIBS)
|
||||
##
|
||||
|
||||
dnl sys/socket.h is required by AC_FUNC_ACCEPT_ARGTYPES
|
||||
AC_CHECK_HEADERS([crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/ucred.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h])
|
||||
AC_CHECK_HEADERS([crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h])
|
||||
|
||||
# On BSD, cpp test for net/if.h will fail unless sys/socket.h
|
||||
# On BSD, test for net/if.h will fail unless sys/socket.h
|
||||
# is included first.
|
||||
AC_CHECK_HEADERS(net/if.h, [], [],
|
||||
[AC_INCLUDES_DEFAULT
|
||||
@ -993,7 +993,14 @@ AC_CHECK_HEADERS(net/if.h, [], [],
|
||||
#endif
|
||||
])
|
||||
|
||||
# At least on IRIX, cpp test for netinet/tcp.h will fail unless
|
||||
# On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
|
||||
# is included first.
|
||||
AC_CHECK_HEADERS(sys/ucred.h, [], [],
|
||||
[AC_INCLUDES_DEFAULT
|
||||
#include <sys/param.h>
|
||||
])
|
||||
|
||||
# At least on IRIX, test for netinet/tcp.h will fail unless
|
||||
# netinet/in.h is included first.
|
||||
AC_CHECK_HEADERS(netinet/in.h)
|
||||
AC_CHECK_HEADERS(netinet/tcp.h, [], [],
|
||||
@ -1133,6 +1140,7 @@ PGAC_TYPE_LOCALE_T
|
||||
|
||||
AC_CHECK_TYPES([struct cmsgcred], [], [],
|
||||
[#include <sys/socket.h>
|
||||
#include <sys/param.h>
|
||||
#ifdef HAVE_SYS_UCRED_H
|
||||
#include <sys/ucred.h>
|
||||
#endif])
|
||||
|
Reference in New Issue
Block a user