Mesa (master): util/os_socket: fix header unavailable on windows
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Feb 4 17:34:52 UTC 2020
Module: Mesa
Branch: master
Commit: d1165ad18b5e1d8b137daff1b1ad3d11ba4445e4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d1165ad18b5e1d8b137daff1b1ad3d11ba4445e4
Author: Eric Engestrom <eric at engestrom.ch>
Date: Tue Feb 4 16:23:59 2020 +0000
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 <eric at engestrom.ch>
Reviewed-by: Krzysztof Raszkowski <krzysztof.raszkowski at intel.com>
---
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 db0dc905a2b..70b195184fa 100644
--- a/src/util/os_socket.h
+++ b/src/util/os_socket.h
@@ -10,10 +10,11 @@
#include <stdio.h>
#include <stdbool.h>
-#include <unistd.h>
#ifdef _MSC_VER
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
+#else
+#include <unistd.h>
#endif
#ifdef __cplusplus
More information about the mesa-commit
mailing list