diff options
author | jinjiazhang <jinjiazhang@tencent.com> | 2019-04-13 10:38:34 +0800 |
---|---|---|
committer | jinjiazhang <jinjiazhang@tencent.com> | 2019-04-13 10:38:34 +0800 |
commit | cdb836d5f845d2bf0fbe58671d073869f41a9936 (patch) | |
tree | 1c54c2f3327c67da17bf718eb9dc353cc168bfda /sockcompat.h | |
parent | 5aa2397f9ec494380774fb9155446f14ebbf3d1f (diff) |
Fix Compile Error On Windows (Visual Studio)
Diffstat (limited to 'sockcompat.h')
-rw-r--r-- | sockcompat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sockcompat.h b/sockcompat.h index 4965b7b..e0b2e5e 100644 --- a/sockcompat.h +++ b/sockcompat.h @@ -50,6 +50,8 @@ #include <ws2tcpip.h> #include <stddef.h> +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); |