]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
windows: Provide shutdown(2) operation aliases mapping to those on Windows
authorMartin Willi <martin@revosec.ch>
Wed, 9 Apr 2014 12:21:12 +0000 (14:21 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 4 Jun 2014 13:53:12 +0000 (15:53 +0200)
src/libstrongswan/utils/windows.h

index c93f3fd7d382131dd403e37396acf28e979ac32d..766050d23628ff3bce652534bd47e98f3407487e 100644 (file)
@@ -280,6 +280,13 @@ char* getpass(const char *prompt);
 #define ECONNRESET ENXIO
 #endif
 
+/**
+ * shutdown(2) "how"-aliases, to use Unix variant on Windows
+ */
+#define SHUT_RD SD_RECEIVE
+#define SHUT_WR SD_SEND
+#define SHUT_RDWR SD_BOTH
+
 /**
  * close(2) working for file handles and Winsock sockets
  */