Remove errno value definitions from <sys/socket.h>.
authorBruno Haible <bruno@clisp.org>
Sun, 14 Sep 2008 02:32:44 +0000 (04:32 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 14 Sep 2008 02:32:44 +0000 (04:32 +0200)
ChangeLog
lib/sys_socket.in.h

index ac10f0a..6c22aa9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-09-13  Bruno Haible  <bruno@clisp.org>
 
+       * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
+
+2008-09-13  Bruno Haible  <bruno@clisp.org>
+
        Extend strerror to cover the added errno values.
        * lib/strerror.c: Include errno.h and winsock2.h if it exists.
        (rpl_strerror): Provide error messages for the added errno values and
index 7c8ad30..6cf3f47 100644 (file)
 #  define SHUT_RDWR SD_BOTH
 # endif
 
-# if defined _WIN32 || defined __WIN32__
-#  define EINPROGRESS            WSAEINPROGRESS
-#  define ENOTSOCK                WSAENOTSOCK
-#  define EADDRINUSE              WSAEADDRINUSE
-#  define ENETRESET               WSAENETRESET
-#  define ECONNABORTED            WSAECONNABORTED
-#  define ECONNRESET              WSAECONNRESET
-#  define ENOTCONN                WSAENOTCONN
-#  define ESHUTDOWN               WSAESHUTDOWN
-# endif
-
 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
 #  define setsockopt(a,b,c,d,e) rpl_setsockopt(a,b,c,d,e)
 static inline int