We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc7e798 commit 12163bdCopy full SHA for 12163bd
1 file changed
src/compat/net.h
@@ -45,8 +45,12 @@
45
#ifdef _WIN32
46
#include <winsock2.h>
47
#include <ws2tcpip.h> // for socklen_t
48
+#include <io.h> // for read, write
49
typedef SOCKET fd_t;
50
#define CLOSESOCKET closesocket
51
+#define SHUT_RD SD_RECEIVE
52
+#define SHUT_WR SD_SEND
53
+#define SHUT_RDWR SD_BOTH
54
#else
55
#include <arpa/inet.h> // for htonl, ntohl
56
#include <netdb.h> // for getaddrinfo
0 commit comments