diff options
author | Eric Engestrom <[email protected]> | 2020-02-04 16:23:59 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2020-02-04 17:33:49 +0000 |
commit | d1165ad18b5e1d8b137daff1b1ad3d11ba4445e4 (patch) | |
tree | 5fe94ac67c3823168c09206ce6f1e6df2c35596c /src/util | |
parent | 36126b6211f1ac2da0aa94411608b2320553dbb6 (diff) |
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 <[email protected]>
Reviewed-by: Krzysztof Raszkowski <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/os_socket.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |