Skip to content

Commit

Permalink
Provide shutdown constants on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
anacrolix committed May 15, 2018
1 parent 53faf77 commit 5ebfece
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utp_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
#include <winsock2.h>
#include <ws2tcpip.h>
#define IP_OPT_DONTFRAG IP_DONTFRAGMENT
#define SHUT_RD SD_RECEIVE
#define SHUT_WR SD_SEND
#define SHUT_RDWR SD_BOTH
#else
#include <netinet/in.h>
#include <arpa/inet.h>
Expand Down

0 comments on commit 5ebfece

Please sign in to comment.