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

Commitb828803

Browse files
committed
Unconditionally use the WSA equivalents of Socket error constants.
This change will only apply to mingw compilers, and has been foundnecessary by late versions of the mingw-w64 compiler. It's the same aswhat is done elsewhere for the Microsoft compilers.Backpatch of commit73838b5.Problem reported by Michael Cronenworth, although not his patch.
1 parentf7bbd46 commitb828803

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎src/include/port/win32.h‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,25 @@ typedef int pid_t;
264264
#undef EINTR
265265
#defineEINTR WSAEINTR
266266
#defineEAGAIN WSAEWOULDBLOCK
267+
#undef EMSGSIZE
267268
#defineEMSGSIZE WSAEMSGSIZE
269+
#undef EAFNOSUPPORT
268270
#defineEAFNOSUPPORT WSAEAFNOSUPPORT
271+
#undef EWOULDBLOCK
269272
#defineEWOULDBLOCK WSAEWOULDBLOCK
273+
#undef ECONNRESET
270274
#defineECONNRESET WSAECONNRESET
275+
#undef EINPROGRESS
271276
#defineEINPROGRESS WSAEINPROGRESS
277+
#undef ENOBUFS
272278
#defineENOBUFS WSAENOBUFS
279+
#undef EPROTONOSUPPORT
273280
#defineEPROTONOSUPPORT WSAEPROTONOSUPPORT
281+
#undef ECONNREFUSED
274282
#defineECONNREFUSED WSAECONNREFUSED
283+
#undef EBADFD
275284
#defineEBADFD WSAENOTSOCK
285+
#undef EOPNOTSUPP
276286
#defineEOPNOTSUPP WSAEOPNOTSUPP
277287

278288
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp