mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Fix IPv6 detection and IPv6 to 4 conversion to use only standard
interfaces.
This commit is contained in:
12
configure.in
12
configure.in
@ -1,5 +1,5 @@
|
||||
dnl Process this file with autoconf to produce a configure script.
|
||||
dnl $Header: /cvsroot/pgsql/configure.in,v 1.230 2003/01/07 06:43:20 momjian Exp $
|
||||
dnl $Header: /cvsroot/pgsql/configure.in,v 1.231 2003/01/09 14:34:53 petere Exp $
|
||||
dnl
|
||||
dnl Developers, please strive to achieve this order:
|
||||
dnl
|
||||
@ -788,11 +788,11 @@ AC_CHECK_DECLS(fdatasync, [], [], [#include <unistd.h>])
|
||||
|
||||
# This exports HAVE_IPV6 to both C files and Makefiles
|
||||
AC_CHECK_FUNC(getaddrinfo,
|
||||
[AC_CHECK_MEMBERS(struct sockaddr_in6.sin6_len,
|
||||
[HAVE_IPV6="yes"; AC_DEFINE(HAVE_IPV6, 1, [])], [],
|
||||
[#include <sys/socket.h>
|
||||
#include <netdb.h>])],
|
||||
[])
|
||||
[AC_CHECK_TYPE(struct sockaddr_in6,
|
||||
[HAVE_IPV6="yes"; AC_DEFINE(HAVE_IPV6, 1)],
|
||||
[],
|
||||
[$ac_includes_default
|
||||
#include <netinet/in.h>])])
|
||||
AC_SUBST(HAVE_IPV6)
|
||||
|
||||
AC_CACHE_CHECK([for PS_STRINGS], [pgac_cv_var_PS_STRINGS],
|
||||
|
Reference in New Issue
Block a user