move WinSock definitions of EBADF, EINTR, EINVAL and EAFNOSUPPORT to setup_once.h
authorYang Tse <yangsita@gmail.com>
Wed, 4 Apr 2007 06:06:36 +0000 (06:06 +0000)
committerYang Tse <yangsita@gmail.com>
Wed, 4 Apr 2007 06:06:36 +0000 (06:06 +0000)
setup_once.h

index 6911f1b..083fdbc 100644 (file)
@@ -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