diff options
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/pg4_dump/pg4_dump.c | 3 |
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" |
