diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index eb03bbf1723f5077883c79f8c819aa8078b72540..d55cc7d7d28e2838a543f54f21a02178184286f3 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -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
  *
@@ -35,7 +35,11 @@
                                 /* 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"