* socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
authorSimon Josefsson <simon@josefsson.org>
Thu, 19 Jan 2006 13:45:37 +0000 (13:45 +0000)
committerSimon Josefsson <simon@josefsson.org>
Thu, 19 Jan 2006 13:45:37 +0000 (13:45 +0000)
lib/ChangeLog
lib/socket_.h

index 7f96e7a4dfb5f15a9ffdf04a26c4eafc6a37b56b..796e193789ede1709a397e84a9de5a725775ea25 100644 (file)
@@ -1,3 +1,7 @@
+2006-01-19  Simon Josefsson  <jas@extundo.com>
+
+       * socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
+
 2006-01-12  Simon Josefsson  <jas@extundo.com>
 
        * base64.c: Fix warning, reported by Bruno Haible
index f3a63b72e20cadd935e8330647e6a2814575e625..5282ed58a9122792fa7874f3820308db12b2c79e 100644 (file)
 # include <ws2tcpip.h>
 #endif
 
+/* For shutdown(). */
+#if !defined(SHUT_RD) && defined (SD_RECEIVE)
+# define SHUT_RD SD_RECEIVE
+#endif
+#if !defined(SHUT_WR) && defined (SD_SEND)
+# define SHUT_WR 1
+#endif
+#if !defined(SHUT_RDWR) && defined (SD_BOTH)
+# define SHUT_RDWR 2
+#endif
+
 #endif /* _SYS_SOCKET_H */