diff options
author | Bruce Momjian <bruce@momjian.us> | 1996-10-13 04:50:27 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1996-10-13 04:50:27 +0000 |
commit | 86be8677a91b551448d325a1dbf9dd8c8031615d (patch) | |
tree | 1c5bef996ce61001cdc9fb7f203a59fa9068c2de /src/backend/libpq/auth.c | |
parent | abb1b3e770fd09acc44bc2152d10020d9479f600 (diff) | |
download | postgresql-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/libpq/auth.c')
-rw-r--r-- | src/backend/libpq/auth.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index 8c253f5c39f..3a42c236e03 100644 --- a/src/backend/libpq/auth.c +++ b/src/backend/libpq/auth.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.3 1996/10/12 07:47:08 bryanh Exp $ + * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.4 1996/10/13 04:49:32 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -52,7 +52,10 @@ */ #include <stdio.h> #include <string.h> -#include <sys/param.h> /* for MAX{HOSTNAME,PATH}LEN, NOFILE */ +#include <sys/param.h> /* for MAXHOSTNAMELEN on most */ +#ifndef MAXHOSTNAMELEN +#include <netdb.h> /* for MAXHOSTNAMELEN on some */ +#endif #include <pwd.h> #include <ctype.h> /* isspace() declaration */ |