From cdb836d5f845d2bf0fbe58671d073869f41a9936 Mon Sep 17 00:00:00 2001 From: jinjiazhang Date: Sat, 13 Apr 2019 10:38:34 +0800 Subject: Fix Compile Error On Windows (Visual Studio) --- sockcompat.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sockcompat.h') diff --git a/sockcompat.h b/sockcompat.h index 4965b7b..e0b2e5e 100644 --- a/sockcompat.h +++ b/sockcompat.h @@ -50,6 +50,8 @@ #include #include +typedef signed long ssize_t; + /* Emulate the parts of the BSD socket API that we need (override the winsock signatures). */ int win32_getaddrinfo(const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res); const char *win32_gai_strerror(int errcode); -- cgit v1.2.3