diff options
author | Martin Willi <martin@revosec.ch> | 2014-04-09 14:21:12 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2014-06-04 15:53:12 +0200 |
commit | 2162e500040c9a9b1f5231ee7d7ee8c9f956741e (patch) | |
tree | a0ac69a046af812c54e0f602ef1822a5a76795e2 /src | |
parent | c079c098c41b8dd2345ac1600770ce39ab6f91c0 (diff) | |
download | strongswan-2162e500040c9a9b1f5231ee7d7ee8c9f956741e.tar.bz2 strongswan-2162e500040c9a9b1f5231ee7d7ee8c9f956741e.tar.xz |
windows: Provide shutdown(2) operation aliases mapping to those on Windows
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/utils/windows.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ -281,6 +281,13 @@ char* getpass(const char *prompt); #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 */ #define close windows_close |