Skip to content

Commit

Permalink
Fix build on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Dec 2, 2024
1 parent edc919c commit 3fdaed7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 0 additions & 2 deletions src/libusbmuxd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 3 additions & 0 deletions tools/inetcat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 3fdaed7

Please sign in to comment.