projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8033a2
)
move WinSock definitions of EBADF, EINTR, EINVAL and EAFNOSUPPORT to setup_once.h
author
Yang Tse
<yangsita@gmail.com>
Wed, 4 Apr 2007 06:06:36 +0000
(06:06 +0000)
committer
Yang Tse
<yangsita@gmail.com>
Wed, 4 Apr 2007 06:06:36 +0000
(06:06 +0000)
setup_once.h
patch
|
blob
|
history
diff --git
a/setup_once.h
b/setup_once.h
index
6911f1b
..
083fdbc
100644
(file)
--- 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