From: Rafael Antognolli Date: Mon, 16 Dec 2019 19:07:42 +0000 (-0800) Subject: utils/os_socket: Define ssize_t on windows. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed43d01dec73edbe734fed065bceab9dfa782a30;p=mesa.git utils/os_socket: Define ssize_t on windows. Fixes: ef5266ebd50 ("util/os_socket: Add socket related functions.") Reviewed-by: Roland Scheidegger --- 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" {