diff options
author | Rafael Antognolli <[email protected]> | 2019-12-16 11:07:42 -0800 |
---|---|---|
committer | Rafael Antognolli <[email protected]> | 2019-12-16 20:35:22 +0000 |
commit | ed43d01dec73edbe734fed065bceab9dfa782a30 (patch) | |
tree | f74a929ce0d3f70c5003e4db8a9aaad3e3bdcbea | |
parent | 43f05e0421344df0bc7ad2c37146e0ea3b2c1786 (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.h | 4 |
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" { |