Skip to content

Commit ee9007a

Browse files
committed
Allow libpq to build on MS Visual Studio .NET 2003 on Windows XP.
1 parent eebece7 commit ee9007a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/include/port/win32.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.40 2004/11/17 00:14:14 tgl Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.41 2004/12/01 23:42:26 momjian Exp $ */
22

33
/* undefine and redefine after #include */
44
#undef mkdir
@@ -210,6 +210,10 @@ typedef int gid_t;
210210
#endif
211211
typedef long key_t;
212212

213+
#ifdef WIN32_CLIENT_ONLY
214+
typedef int pid_t;
215+
#endif
216+
213217
/*
214218
* Supplement to <sys/stat.h>.
215219
*/

src/interfaces/libpq/fe-connect.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.289 2004/10/30 23:11:26 tgl Exp $
11+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.290 2004/12/01 23:42:26 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -20,7 +20,9 @@
2020
#include <fcntl.h>
2121
#include <ctype.h>
2222
#include <time.h>
23+
#ifndef WIN32_CLIENT_ONLY
2324
#include <unistd.h>
25+
#endif
2426

2527
#ifndef HAVE_STRDUP
2628
#include "strdup.h"
@@ -35,7 +37,6 @@
3537
#include "win32.h"
3638
#else
3739
#include <sys/socket.h>
38-
#include <unistd.h>
3940
#include <netdb.h>
4041
#include <netinet/in.h>
4142
#ifdef HAVE_NETINET_TCP_H

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy