MAXHOSTNAMELEN is defined. For some reason, my 2.5.1 Solaris box at
work fails on that check...
*
*
* 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
*
*/
/* 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
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
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.
* 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