]> granicus.if.org Git - postgresql/commitdiff
Check for and use <netdb.h> for postmaster.c, instead of checking if
authorMarc G. Fournier <scrappy@hub.org>
Wed, 30 Jul 1997 14:03:33 +0000 (14:03 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Wed, 30 Jul 1997 14:03:33 +0000 (14:03 +0000)
MAXHOSTNAMELEN is defined.  For some reason, my 2.5.1 Solaris box at
work fails on that check...

src/backend/postmaster/postmaster.c
src/configure
src/configure.in
src/include/config.h.in

index 412f53cfae0ec0eca240fab25e8b5188f0c24dc4..eb03bbf1723f5077883c79f8c819aa8078b72540 100644 (file)
@@ -10,7 +10,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.46 1997/05/25 15:37:15 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.47 1997/07/30 14:03:33 scrappy Exp $
  *
  * NOTES
  *
@@ -34,7 +34,7 @@
  */
                                 /* moved here to prevent double define */
 #include <sys/param.h>          /* for MAXHOSTNAMELEN on most */
-#ifndef MAXHOSTNAMELEN
+#ifdef HAVE_NETDB_H
 #include <netdb.h>              /* for MAXHOSTNAMELEN on some */
 #endif
 
index 46a882253b12398788a277004ad63708f271d3eb..36840ca3e3b90f1b186587a7f8825d86cd0bc40e 100755 (executable)
@@ -2688,7 +2688,7 @@ else
 fi
 done
 
-for ac_hdr in sys/resource.h
+for ac_hdr in sys/resource.h netdb.h
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
index 428437dde548b5bdc06016b9ae38933eed4e5fe4..8e63852b263fd221738cc13edb90fd2f520ed08f 100644 (file)
@@ -376,7 +376,7 @@ dnl Checks for header files.
 AC_HEADER_STDC
 AC_HEADER_SYS_WAIT
 AC_CHECK_HEADERS(limits.h unistd.h termios.h values.h sys/select.h)
-AC_CHECK_HEADERS(sys/resource.h)
+AC_CHECK_HEADERS(sys/resource.h netdb.h)
 AC_CHECK_HEADERS(readline.h history.h dld.h crypt.h endian.h float.h)
 
 dnl Checks for typedefs, structures, and compiler characteristics.
index 8e5b19414573c7eef2fe02e7b0546348a57c55b4..da9122aee25889fbf5187cfb21e2f7cf9ab25782 100644 (file)
@@ -14,6 +14,9 @@
  * The following is set using configure.  
  */
 
+/* Set to 1 if you have <netdb.h> */
+#undef HAVE_NETDB_H
+
 /* Set to 1 if you have <endian.h> */
 #undef HAVE_ENDIAN_H