aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-08-25 02:28:03 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-08-25 02:28:03 +0000
commitea849a2648e720a2db31c473342ad8f5e631d825 (patch)
treea60651bf829424cd4070087ebb5fb5ac8774598c
parent15df139a8c99ebd144ca1a57bf69bff31c6b9dd8 (diff)
downloadpostgresql-ea849a2648e720a2db31c473342ad8f5e631d825.tar.gz
postgresql-ea849a2648e720a2db31c473342ad8f5e631d825.zip
Add comment explaining that autoconf's failure to find getaddrinfo()
on Windows is now a feature, not a bug.
-rwxr-xr-xconfigure7
-rw-r--r--configure.in9
2 files changed, 11 insertions, 5 deletions
diff --git a/configure b/configure
index aa79db47a42..3cc7ba747a0 100755
--- a/configure
+++ b/configure
@@ -14550,8 +14550,11 @@ done
-# system's version of getaddrinfo(), if any, may be used only if we found
-# a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
+# System's version of getaddrinfo(), if any, may be used only if we found
+# a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
+# (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
+# versions of getaddrinfo don't follow normal C call protocol. This is OK
+# because we want to use our own getaddrinfo.c on Windows anyway.)
if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
for ac_func in getaddrinfo
diff --git a/configure.in b/configure.in
index 4f584039278..708bc92a629 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-dnl $PostgreSQL: pgsql/configure.in,v 1.424 2005/08/24 21:32:37 pgsql Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.425 2005/08/25 02:28:03 tgl Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
@@ -883,8 +883,11 @@ fi
AC_REPLACE_FUNCS([crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv])
-# system's version of getaddrinfo(), if any, may be used only if we found
-# a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
+# System's version of getaddrinfo(), if any, may be used only if we found
+# a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
+# (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
+# versions of getaddrinfo don't follow normal C call protocol. This is OK
+# because we want to use our own getaddrinfo.c on Windows anyway.)
if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
AC_REPLACE_FUNCS([getaddrinfo])
else