From 2162e500040c9a9b1f5231ee7d7ee8c9f956741e Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 9 Apr 2014 14:21:12 +0200 Subject: [PATCH] windows: Provide shutdown(2) operation aliases mapping to those on Windows --- src/libstrongswan/utils/windows.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/libstrongswan/utils/windows.h b/src/libstrongswan/utils/windows.h index c93f3fd7d..766050d23 100644 --- a/src/libstrongswan/utils/windows.h +++ b/src/libstrongswan/utils/windows.h @@ -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 */