summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorBruce Momjian1996-10-13 04:50:27 +0000
committerBruce Momjian1996-10-13 04:50:27 +0000
commit86be8677a91b551448d325a1dbf9dd8c8031615d (patch)
tree1c5bef996ce61001cdc9fb7f203a59fa9068c2de /src/bin
parentabb1b3e770fd09acc44bc2152d10020d9479f600 (diff)
Added consistent include file handling for MAXHOSTNAMELEN.
If I have introduced any syntax errors with this, I will patch them in the morning, and Marc will have a good laugh.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/pg4_dump/pg4_dump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/pg4_dump/pg4_dump.c b/src/bin/pg4_dump/pg4_dump.c
index 9944ca1190e..6f484d48c64 100644
--- a/src/bin/pg4_dump/pg4_dump.c
+++ b/src/bin/pg4_dump/pg4_dump.c
@@ -28,9 +28,10 @@
#include <stdlib.h>
#include <stdio.h>
#include <sys/param.h> /* for MAXHOSTNAMELEN on most */
-#if defined(PORTNAME_sparc_solaris) || defined(PORTNAME_i386_solaris)
+#ifndef MAXHOSTNAMELEN
#include <netdb.h> /* for MAXHOSTNAMELEN on some */
#endif
+#endif
#include "tmp/postgres.h"
#include "tmp/libpq-fe.h"