aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-04-04 06:06:36 +0000
committerYang Tse <yangsita@gmail.com>2007-04-04 06:06:36 +0000
commit8fe9376d542ef4f11b2049190de363f7b79436ec (patch)
tree9ad6908d6ed331e2cfad12eb65cd08b9f4e2b294 /ares
parenta1f72943e96172b4598bf3cb5993c554d1294b8c (diff)
move WinSock definitions of EBADF, EINTR, EINVAL and EAFNOSUPPORT to setup_once.h
Diffstat (limited to 'ares')
-rw-r--r--ares/setup_once.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ares/setup_once.h b/ares/setup_once.h
index 6911f1bcf..083fdbc4f 100644
--- a/ares/setup_once.h
+++ b/ares/setup_once.h
@@ -276,6 +276,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