summaryrefslogtreecommitdiff
path: root/sockcompat.h
diff options
context:
space:
mode:
Diffstat (limited to 'sockcompat.h')
-rw-r--r--sockcompat.h2
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);