diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-05-14 14:00:52 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-05-28 22:09:00 +0200 |
commit | b1aec45bc2afa967582fc5e866f494accb552b1d (patch) | |
tree | c53c814db0dc59e5c39328d07a1e44feceee75e7 | |
parent | ab9fb33c708ae2d889fc36da9ade135ca82c07fc (diff) | |
download | slirp-b1aec45bc2afa967582fc5e866f494accb552b1d.zip slirp-b1aec45bc2afa967582fc5e866f494accb552b1d.tar.gz slirp-b1aec45bc2afa967582fc5e866f494accb552b1d.tar.bz2 |
Do not include unistd.h on windows, it does not have it
-rw-r--r-- | src/util.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -30,10 +30,8 @@ #include <stdio.h> #include <assert.h> #include <errno.h> -#include <unistd.h> #include <sys/types.h> #include <sys/stat.h> -#include <unistd.h> #include <inttypes.h> #ifdef _WIN32 @@ -41,6 +39,7 @@ #include <windows.h> #include <ws2tcpip.h> #else +#include <unistd.h> #include <sys/socket.h> #include <netinet/tcp.h> #include <netinet/in.h> |