Commit ecefacd0 authored by Marc G. Fournier's avatar Marc G. Fournier

Due to BIND 8.1.1, my Solaris 2.5.1 machine doesn't define MAXHOSTNAMELEN...

so, add a check that basically says if it isn't defined, set it to 256...
parent 5089f6ce
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* *
* *
* IDENTIFICATION * 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 * NOTES
* *
...@@ -35,7 +35,11 @@ ...@@ -35,7 +35,11 @@
/* moved here to prevent double define */ /* moved here to prevent double define */
#include <sys/param.h> /* for MAXHOSTNAMELEN on most */ #include <sys/param.h> /* for MAXHOSTNAMELEN on most */
#ifdef HAVE_NETDB_H #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 #endif
#include "postgres.h" #include "postgres.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment