diff options
| author | 2024-11-28 18:42:42 +0100 | |
|---|---|---|
| committer | 2024-11-29 04:27:50 +0100 | |
| commit | c3ca555266ff0f241f32a8e8fc2a3ccdae6623fe (patch) | |
| tree | 753eb06579771282c6bc0ee7eea12889953aeacd /tools/iproxy.c | |
| parent | 5d718587177561f3084ed13db4b72a56912d27f5 (diff) | |
| download | libusbmuxd-c3ca555266ff0f241f32a8e8fc2a3ccdae6623fe.tar.gz libusbmuxd-c3ca555266ff0f241f32a8e8fc2a3ccdae6623fe.tar.bz2 | |
Fix compatibility with MSVC
Diffstat (limited to 'tools/iproxy.c')
| -rw-r--r-- | tools/iproxy.c | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/tools/iproxy.c b/tools/iproxy.c index 1a8e5b8..7427a54 100644 --- a/tools/iproxy.c +++ b/tools/iproxy.c @@ -32,20 +32,22 @@  #include <stdio.h>  #include <stdlib.h>  #include <string.h> -#include <fcntl.h>  #include <stddef.h> -#include <unistd.h>  #include <errno.h> -#include <getopt.h> +  #ifdef _WIN32  #include <winsock2.h>  #include <windows.h>  typedef unsigned int socklen_t;  #else +#include <fcntl.h> +#include <unistd.h>  #include <sys/select.h>  #include <sys/socket.h>  #include <signal.h>  #endif + +#include <getopt.h>  #include <libimobiledevice-glue/socket.h>  #include <libimobiledevice-glue/thread.h>  #include "usbmuxd.h" | 
