From 3fdaed78de8000af3b5d19d953eccd80a208ae2c Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 2 Dec 2024 06:12:43 +0100 Subject: Fix build on Windows --- configure.ac | 2 +- src/libusbmuxd.c | 2 -- 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 #include -#ifndef HAVE_SLEEP #define sleep(x) Sleep(x*1000) -#endif #else #include #include 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 #include +#ifndef _MSC_VER +#include +#endif #else #include #include -- cgit v1.1-32-gdbae