diff --git a/src/net/sock.c b/src/net/sock.c index aeb5285..81799b3 100644 --- a/src/net/sock.c +++ b/src/net/sock.c @@ -12,6 +12,11 @@ #define _GNU_SOURCE #endif +#if defined(_MSC_VER) +#include +typedef SSIZE_T ssize_t; +#endif + #include "sock.h" #include "sync.h" #include "xstr.h"