From: Eric Engestrom Date: Tue, 4 Feb 2020 16:23:59 +0000 (+0000) Subject: util/os_socket: fix header unavailable on windows X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1165ad18b5e1d8b137daff1b1ad3d11ba4445e4;p=mesa.git util/os_socket: fix header unavailable on windows Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2464 Fixes: e62c3cf350a8b169e640 ("util/os_socket: Include unistd.h to fix build error") Signed-off-by: Eric Engestrom Reviewed-by: Krzysztof Raszkowski --- diff --git a/src/util/os_socket.h b/src/util/os_socket.h index db0dc905a2b..70b195184fa 100644 --- a/src/util/os_socket.h +++ b/src/util/os_socket.h @@ -10,10 +10,11 @@ #include #include -#include #ifdef _MSC_VER #include typedef SSIZE_T ssize_t; +#else +#include #endif #ifdef __cplusplus