Skip to content

Commit 3fdaed7

Browse files
committed
Fix build on Windows
1 parent edc919c commit 3fdaed7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ AC_TYPE_UINT32_T
6969
AC_TYPE_UINT8_T
7070

7171
# Checks for library functions.
72-
AC_CHECK_FUNCS([strcasecmp strdup strerror stpncpy sleep malloc realloc getifaddrs])
72+
AC_CHECK_FUNCS([strcasecmp strdup strerror stpncpy malloc realloc getifaddrs])
7373

7474
# Check for operating system
7575
AC_MSG_CHECKING([for platform-specific build settings])

src/libusbmuxd.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@
5454
#ifdef _WIN32
5555
#include <winsock2.h>
5656
#include <windows.h>
57-
#ifndef HAVE_SLEEP
5857
#define sleep(x) Sleep(x*1000)
59-
#endif
6058
#else
6159
#include <unistd.h>
6260
#include <signal.h>

tools/inetcat.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
#ifdef _WIN32
3838
#include <winsock2.h>
3939
#include <windows.h>
40+
#ifndef _MSC_VER
41+
#include <unistd.h>
42+
#endif
4043
#else
4144
#include <fcntl.h>
4245
#include <unistd.h>

0 commit comments

Comments
 (0)