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 db0dc90..70b1951 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