util/os_socket: fix header unavailable on windows

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2464
Fixes: e62c3cf350 ("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>
This commit is contained in:
Eric Engestrom 2020-02-04 16:23:59 +00:00
parent 36126b6211
commit d1165ad18b

View file

@ -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