From d1165ad18b5e1d8b137daff1b1ad3d11ba4445e4 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Tue, 4 Feb 2020 16:23:59 +0000 Subject: [PATCH] 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 --- src/util/os_socket.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/os_socket.h b/src/util/os_socket.h index db0dc90..70b1951 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 -- 2.7.4