aboutsummaryrefslogtreecommitdiff
path: root/lib/setup_once.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/setup_once.h')
-rw-r--r--lib/setup_once.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/setup_once.h b/lib/setup_once.h
index 79324d40f..03141a4ff 100644
--- a/lib/setup_once.h
+++ b/lib/setup_once.h
@@ -283,6 +283,12 @@ typedef int sig_atomic_t;
*/
#ifdef USE_WINSOCK
+#undef EBADF /* override definition in errno.h */
+#define EBADF WSAEBADF
+#undef EINTR /* override definition in errno.h */
+#define EINTR WSAEINTR
+#undef EINVAL /* override definition in errno.h */
+#define EINVAL WSAEINVAL
#define EWOULDBLOCK WSAEWOULDBLOCK
#define EINPROGRESS WSAEINPROGRESS
#define EALREADY WSAEALREADY