diff options
author | Brent Cook <busterb@gmail.com> | 2014-11-19 07:43:07 -0600 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2014-12-03 17:07:17 -0600 |
commit | cccdd689e39b51af02b156229e5236a2a69dcdcb (patch) | |
tree | 79a77dcdc785a109aaaeb4a2a47507933525e47b /include/win32netcompat.h | |
parent | 1bbde19a7c0db8d25fb496dea3e05e3dbc0bbeaf (diff) | |
download | portable-cccdd689e39b51af02b156229e5236a2a69dcdcb.tar.gz portable-cccdd689e39b51af02b156229e5236a2a69dcdcb.tar.bz2 portable-cccdd689e39b51af02b156229e5236a2a69dcdcb.zip |
add minimal winsock->BSD networking header shims
also add license header to existing shims
Diffstat (limited to 'include/win32netcompat.h')
-rw-r--r-- | include/win32netcompat.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/win32netcompat.h b/include/win32netcompat.h new file mode 100644 index 0000000..3c716b0 --- /dev/null +++ b/include/win32netcompat.h | |||
@@ -0,0 +1,22 @@ | |||
1 | #ifndef LIBCRYPTOCOMPAT_WIN32NETCOMPAT_H | ||
2 | #define LIBCRYPTOCOMPAT_WIN32NETCOMPAT_H | ||
3 | |||
4 | #ifdef _WIN32 | ||
5 | |||
6 | #include <ws2tcpip.h> | ||
7 | |||
8 | #ifndef SHUT_RDWR | ||
9 | #define SHUT_RDWR SD_BOTH | ||
10 | #endif | ||
11 | |||
12 | #ifndef SHUT_RD | ||
13 | #define SHUT_RD SD_RECEIVE | ||
14 | #endif | ||
15 | |||
16 | #ifndef SHUT_WR | ||
17 | #define SHUT_WR SD_SEND | ||
18 | #endif | ||
19 | |||
20 | #endif | ||
21 | |||
22 | #endif | ||