Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitee9007a

Browse files
committed
Allow libpq to build on MS Visual Studio .NET 2003 on Windows XP.
1 parenteebece7 commitee9007a

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
typedeflongkey_t;
212212

213+
#ifdefWIN32_CLIENT_ONLY
214+
typedefintpid_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:26tgl Exp $
11+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.290 2004/12/01 23:42:26momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -20,7 +20,9 @@
2020
#include<fcntl.h>
2121
#include<ctype.h>
2222
#include<time.h>
23+
#ifndefWIN32_CLIENT_ONLY
2324
#include<unistd.h>
25+
#endif
2426

2527
#ifndefHAVE_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
#ifdefHAVE_NETINET_TCP_H

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp