1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-12 05:01:15 +03:00

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.
This commit is contained in:
Bruce Momjian
1996-10-13 04:50:27 +00:00
parent abb1b3e770
commit 86be8677a9
5 changed files with 25 additions and 31 deletions

View File

@@ -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 $");
}
/* ----------------