diff options
author | Yang Tse <yangsita@gmail.com> | 2007-04-04 06:06:36 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-04-04 06:06:36 +0000 |
commit | 8fe9376d542ef4f11b2049190de363f7b79436ec (patch) | |
tree | 9ad6908d6ed331e2cfad12eb65cd08b9f4e2b294 /ares | |
parent | a1f72943e96172b4598bf3cb5993c554d1294b8c (diff) |
move WinSock definitions of EBADF, EINTR, EINVAL and EAFNOSUPPORT to setup_once.h
Diffstat (limited to 'ares')
-rw-r--r-- | ares/setup_once.h | 6 |
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 |