For some reason, mingw32 uses non-POSIX names for shutdown's 'how'. I have installed this. 2006-01-19 Simon Josefsson <[EMAIL PROTECTED]>

        * socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.

--- socket_.h   09 Jan 2006 17:13:09 +0100      1.1
+++ socket_.h   19 Jan 2006 14:39:07 +0100      
@@ -34,4 +34,15 @@
# 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 */


_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to