Skip to content

Commit ecefacd

Browse files
committed
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...
1 parent 5089f6c commit ecefacd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.47 1997/07/30 14:03:33 scrappy Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.48 1997/07/30 14:08:11 scrappy Exp $
1414
*
1515
* NOTES
1616
*
@@ -35,7 +35,11 @@
3535
/* moved here to prevent double define */
3636
#include <sys/param.h> /* for MAXHOSTNAMELEN on most */
3737
#ifdef HAVE_NETDB_H
38-
#include <netdb.h> /* for MAXHOSTNAMELEN on some */
38+
# include <netdb.h> /* for MAXHOSTNAMELEN on some */
39+
#endif
40+
41+
#ifndef MAXHOSTNAMELEN
42+
# define MAXHOSTNAMELEN 256
3943
#endif
4044

4145
#include "postgres.h"

0 commit comments

Comments
 (0)