Skip to content

Commit b828803

Browse files
committed
Unconditionally use the WSA equivalents of Socket error constants.
This change will only apply to mingw compilers, and has been found necessary by late versions of the mingw-w64 compiler. It's the same as what is done elsewhere for the Microsoft compilers. Backpatch of commit 73838b5. Problem reported by Michael Cronenworth, although not his patch.
1 parent f7bbd46 commit b828803

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
#define EINTR WSAEINTR
266266
#define EAGAIN WSAEWOULDBLOCK
267+
#undef EMSGSIZE
267268
#define EMSGSIZE WSAEMSGSIZE
269+
#undef EAFNOSUPPORT
268270
#define EAFNOSUPPORT WSAEAFNOSUPPORT
271+
#undef EWOULDBLOCK
269272
#define EWOULDBLOCK WSAEWOULDBLOCK
273+
#undef ECONNRESET
270274
#define ECONNRESET WSAECONNRESET
275+
#undef EINPROGRESS
271276
#define EINPROGRESS WSAEINPROGRESS
277+
#undef ENOBUFS
272278
#define ENOBUFS WSAENOBUFS
279+
#undef EPROTONOSUPPORT
273280
#define EPROTONOSUPPORT WSAEPROTONOSUPPORT
281+
#undef ECONNREFUSED
274282
#define ECONNREFUSED WSAECONNREFUSED
283+
#undef EBADFD
275284
#define EBADFD WSAENOTSOCK
285+
#undef EOPNOTSUPP
276286
#define EOPNOTSUPP WSAEOPNOTSUPP
277287

278288
/*

0 commit comments

Comments
 (0)