aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Antognolli <[email protected]>2019-12-16 11:07:42 -0800
committerRafael Antognolli <[email protected]>2019-12-16 20:35:22 +0000
commited43d01dec73edbe734fed065bceab9dfa782a30 (patch)
treef74a929ce0d3f70c5003e4db8a9aaad3e3bdcbea
parent43f05e0421344df0bc7ad2c37146e0ea3b2c1786 (diff)
utils/os_socket: Define ssize_t on windows.
Fixes: ef5266ebd50 ("util/os_socket: Add socket related functions.") Reviewed-by: Roland Scheidegger <[email protected]>
-rw-r--r--src/util/os_socket.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/os_socket.h b/src/util/os_socket.h
index 0e413ef353e..0d6f8749176 100644
--- a/src/util/os_socket.h
+++ b/src/util/os_socket.h
@@ -10,6 +10,10 @@
#include <stdio.h>
#include <stdbool.h>
+#ifdef _MSC_VER
+#include <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+#endif
#ifdef __cplusplus
extern "C" {