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

Commitce9f73c

Browse files
committed
The following is required in order to make beta1 compile on the Win32
platform (psql and libpq):The file "config.h.win32" in the include\ directory (from my patch from2000-01-18) is missing from the tree. It needs to be put back :-)The following patch has to be applied in the interfaces\libpq directory.//Magnus
1 parent58f481c commitce9f73c

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

‎src/interfaces/libpq/fe-connect.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.121 2000/02/21 12:26:19 wieck Exp $
11+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.122 2000/02/24 15:53:12 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -592,6 +592,7 @@ connectMakeNonblocking(PGconn *conn)
592592
#ifndefWIN32
593593
if (fcntl(conn->sock,F_SETFL,O_NONBLOCK)<0)
594594
#else
595+
inton=1;
595596
if (ioctlsocket(conn->sock,FIONBIO,&on)!=0)
596597
#endif
597598
{

‎src/interfaces/libpq/libpqdll.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ EXPORTS
7272
initPQExpBuffer@ 69
7373
resetPQExpBuffer@ 70
7474
PQoidValue@ 71
75-
PQclientencoding@ 72
75+
PQclientEncoding@ 72
7676
PQenv2encoding@ 73
7777
appendBinaryPQExpBuffer@ 74
7878
appendPQExpBufferStr@ 75

‎src/interfaces/libpq/win32.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* strcasecmp() is not in Windows, stricmp is, though
55
*/
66
#definestrcasecmp(a,b) stricmp(a,b)
7+
#definestrncasecmp(a,b,c) _strnicmp(a,b,c)
78

89
#defineSOCKET_SIZE_TYPE int
910

@@ -16,6 +17,7 @@
1617
#definewrite(a,b,c) _write(a,b,c)
1718
#definepopen(a,b) _popen(a,b)
1819
#definepclose(a) _pclose(a)
20+
#definevsnprintf(a,b,c,d) _vsnprintf(a,b,c,d)
1921

2022
/*
2123
* crypt not available (yet)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp