[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
socket.h
From: |
Simon Josefsson |
Subject: |
socket.h |
Date: |
Thu, 19 Jan 2006 14:44:43 +0100 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
For some reason, mingw32 uses non-POSIX names for shutdown's
'how'. I have installed this. 2006-01-19 Simon Josefsson
<address@hidden>
* 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 */
- socket.h,
Simon Josefsson <=
Re: socket.h, Simon Josefsson, 2006/01/24