]> granicus.if.org Git - postgresql/commitdiff
Due to BIND 8.1.1, my Solaris 2.5.1 machine doesn't define MAXHOSTNAMELEN...
authorMarc G. Fournier <scrappy@hub.org>
Wed, 30 Jul 1997 14:08:11 +0000 (14:08 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Wed, 30 Jul 1997 14:08:11 +0000 (14:08 +0000)
so, add a check that basically says if it isn't defined, set it to 256...

src/backend/postmaster/postmaster.c

index eb03bbf1723f5077883c79f8c819aa8078b72540..d55cc7d7d28e2838a543f54f21a02178184286f3 100644 (file)
@@ -10,7 +10,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.47 1997/07/30 14:03:33 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.48 1997/07/30 14:08:11 scrappy Exp $
  *
  * NOTES
  *
                                 /* moved here to prevent double define */
 #include <sys/param.h>          /* for MAXHOSTNAMELEN on most */
 #ifdef HAVE_NETDB_H
-#include <netdb.h>              /* for MAXHOSTNAMELEN on some */
+#  include <netdb.h>              /* for MAXHOSTNAMELEN on some */
+#endif
+
+#ifndef MAXHOSTNAMELEN
+#  define MAXHOSTNAMELEN 256
 #endif
 
 #include "postgres.h"