aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1996-10-13 04:50:27 +0000
committerBruce Momjian <bruce@momjian.us>1996-10-13 04:50:27 +0000
commit86be8677a91b551448d325a1dbf9dd8c8031615d (patch)
tree1c5bef996ce61001cdc9fb7f203a59fa9068c2de /src/backend/tcop/postgres.c
parentabb1b3e770fd09acc44bc2152d10020d9479f600 (diff)
downloadpostgresql-86be8677a91b551448d325a1dbf9dd8c8031615d.tar.gz
postgresql-86be8677a91b551448d325a1dbf9dd8c8031615d.zip
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/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index dd638c03c72..7ac58d8253a 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.9 1996/10/04 20:16:32 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.10 1996/10/13 04:49:57 momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -27,13 +27,9 @@
#include <time.h>
#include <sys/time.h>
#include <sys/param.h> /* for MAXHOSTNAMELEN on most */
-#ifndef WIN32
+#ifndef MAXHOSTNAMELEN
#include <netdb.h> /* for MAXHOSTNAMELEN on some */
-#ifndef MAXHOSTNAMELEN /* for MAXHOSTNAMELEN everywhere else */
-#include <arpa/nameser.h>
-#define MAXHOSTNAMELEN MAXDNAME
#endif
-#endif /* WIN32 */
#include <errno.h>
#ifdef PORTNAME_aix
#include <sys/select.h>
@@ -1269,7 +1265,7 @@ PostgresMain(int argc, char *argv[])
*/
if (IsUnderPostmaster == false) {
puts("\nPOSTGRES backend interactive interface");
- puts("$Revision: 1.9 $ $Date: 1996/10/04 20:16:32 $");
+ puts("$Revision: 1.10 $ $Date: 1996/10/13 04:49:57 $");
}
/* ----------------