util/os_socket: fix header unavailable on windows
authorEric Engestrom <eric@engestrom.ch>
Tue, 4 Feb 2020 16:23:59 +0000 (16:23 +0000)
committerEric Engestrom <eric@engestrom.ch>
Tue, 4 Feb 2020 17:33:49 +0000 (17:33 +0000)
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@engestrom.ch>
Reviewed-by: Krzysztof Raszkowski <krzysztof.raszkowski@intel.com>
src/util/os_socket.h

index db0dc905a2b4c1f7868958d78f5326fb6fb6e809..70b195184fa89cd8a9296a51ea997506f88b6a28 100644 (file)
 
 #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