add minimal winsock->BSD networking header shims

also add license header to existing shims
This commit is contained in:
Brent Cook
2014-11-19 07:43:07 -06:00
committed by Brent Cook
parent 1bbde19a7c
commit cccdd689e3
20 changed files with 205 additions and 2 deletions

22
include/win32netcompat.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef LIBCRYPTOCOMPAT_WIN32NETCOMPAT_H
#define LIBCRYPTOCOMPAT_WIN32NETCOMPAT_H
#ifdef _WIN32
#include <ws2tcpip.h>
#ifndef SHUT_RDWR
#define SHUT_RDWR SD_BOTH
#endif
#ifndef SHUT_RD
#define SHUT_RD SD_RECEIVE
#endif
#ifndef SHUT_WR
#define SHUT_WR SD_SEND
#endif
#endif
#endif