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

Commit808849e

Browse files
committed
Fix lack of repeat-inclusion guard in win32 substitute sys/socket.h.
I think this explains the 'implicit declaration of function gai_strerror'warnings visible in the current buildfarm report from snake: ifsys/socket.h is included again after getaddrinfo.h, the file wouldmerrily undefine the gai_strerror macro.
1 parent3ff58b4 commit808849e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎src/include/port/win32/sys/socket.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* $PostgreSQL: pgsql/src/include/port/win32/sys/socket.h,v 1.6 2006/07/16 01:35:28 tgl Exp $
3+
*/
4+
#ifndefWIN32_SYS_SOCKET_H
5+
#defineWIN32_SYS_SOCKET_H
6+
17
/*
28
* Unfortunately, <wingdi.h> of VC++ also defines ERROR.
39
* To avoid the conflict, we include <windows.h> here and undefine ERROR
@@ -7,12 +13,14 @@
713
*/
814
#include<winsock2.h>
915
#include<ws2tcpip.h>
16+
1017
#undef ERROR
1118
#undef small
1219

1320
/* Restore old ERROR value */
1421
#ifdefPGERROR
1522
#defineERROR PGERROR
23+
#endif
1624

1725
/*
1826
* we can't use the windows gai_strerror{AW} functions because
@@ -21,4 +29,4 @@
2129
*/
2230
#undef gai_strerror
2331

24-
#endif
32+
#endif/* WIN32_SYS_SOCKET_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp