diff options
author | 2024-12-02 06:12:43 +0100 | |
---|---|---|
committer | 2024-12-02 06:12:43 +0100 | |
commit | 3fdaed78de8000af3b5d19d953eccd80a208ae2c (patch) | |
tree | 39bc751bca974e4e974ef393d6159da32f6b5f51 | |
parent | edc919c550f99126f23104f7941b977ce3838a1c (diff) | |
download | libusbmuxd-3fdaed78de8000af3b5d19d953eccd80a208ae2c.tar.gz libusbmuxd-3fdaed78de8000af3b5d19d953eccd80a208ae2c.tar.bz2 |
Fix build on Windows
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/libusbmuxd.c | 2 | ||||
-rw-r--r-- | tools/inetcat.c | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index facf678..a53368b 100644 --- a/configure.ac +++ b/configure.ac @@ -69,7 +69,7 @@ AC_TYPE_UINT32_T AC_TYPE_UINT8_T # Checks for library functions. -AC_CHECK_FUNCS([strcasecmp strdup strerror stpncpy sleep malloc realloc getifaddrs]) +AC_CHECK_FUNCS([strcasecmp strdup strerror stpncpy malloc realloc getifaddrs]) # Check for operating system AC_MSG_CHECKING([for platform-specific build settings]) diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c index ef81416..1cf44a1 100644 --- a/src/libusbmuxd.c +++ b/src/libusbmuxd.c @@ -54,9 +54,7 @@ #ifdef _WIN32 #include <winsock2.h> #include <windows.h> -#ifndef HAVE_SLEEP #define sleep(x) Sleep(x*1000) -#endif #else #include <unistd.h> #include <signal.h> diff --git a/tools/inetcat.c b/tools/inetcat.c index 5db9349..c6e0250 100644 --- a/tools/inetcat.c +++ b/tools/inetcat.c @@ -37,6 +37,9 @@ #ifdef _WIN32 #include <winsock2.h> #include <windows.h> +#ifndef _MSC_VER +#include <unistd.h> +#endif #else #include <fcntl.h> #include <unistd.h> |