diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-12-01 23:42:26 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-12-01 23:42:26 +0000 |
commit | ee9007a2e19793e0592ad4c09d464a85511a2dfb (patch) | |
tree | 63c1233db785ef01f2b0ea60a791329dafe043d4 /src/interfaces/libpq/fe-connect.c | |
parent | eebece7d0db758a5c3d77aebb8ada31541339c38 (diff) | |
download | postgresql-ee9007a2e19793e0592ad4c09d464a85511a2dfb.tar.gz postgresql-ee9007a2e19793e0592ad4c09d464a85511a2dfb.zip |
Allow libpq to build on MS Visual Studio .NET 2003 on Windows XP.
Diffstat (limited to 'src/interfaces/libpq/fe-connect.c')
-rw-r--r-- | src/interfaces/libpq/fe-connect.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index f44e1f606db..6da2c79af4a 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.289 2004/10/30 23:11:26 tgl Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.290 2004/12/01 23:42:26 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -20,7 +20,9 @@ #include <fcntl.h> #include <ctype.h> #include <time.h> +#ifndef WIN32_CLIENT_ONLY #include <unistd.h> +#endif #ifndef HAVE_STRDUP #include "strdup.h" @@ -35,7 +37,6 @@ #include "win32.h" #else #include <sys/socket.h> -#include <unistd.h> #include <netdb.h> #include <netinet/in.h> #ifdef HAVE_NETINET_TCP_H |