summaryrefslogtreecommitdiff
path: root/setup_once.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-04-04 06:06:36 (GMT)
committerYang Tse <yangsita@gmail.com>2007-04-04 06:06:36 (GMT)
commit140d6b08fb0ab649e9725119296effb1d999f842 (patch)
tree5af7ba3099444a505c59df43ac8cb5741b3862e5 /setup_once.h
parentc8033a21a138d208c12321954f12487672f3254d (diff)
downloadc-ares-140d6b08fb0ab649e9725119296effb1d999f842.zip
c-ares-140d6b08fb0ab649e9725119296effb1d999f842.tar.gz
c-ares-140d6b08fb0ab649e9725119296effb1d999f842.tar.bz2
move WinSock definitions of EBADF, EINTR, EINVAL and EAFNOSUPPORT to setup_once.h
Diffstat (limited to 'setup_once.h')
-rw-r--r--setup_once.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/setup_once.h b/setup_once.h
index 6911f1b..083fdbc 100644
--- a/setup_once.h
+++ b/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