From ed43d01dec73edbe734fed065bceab9dfa782a30 Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Mon, 16 Dec 2019 11:07:42 -0800 Subject: utils/os_socket: Define ssize_t on windows. Fixes: ef5266ebd50 ("util/os_socket: Add socket related functions.") Reviewed-by: Roland Scheidegger --- src/util/os_socket.h | 4 ++++ 1 file changed, 4 insertions(+) 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 #include +#ifdef _MSC_VER +#include +typedef SSIZE_T ssize_t; +#endif #ifdef __cplusplus extern "C" { -- cgit v1.2.3