diff options
| author | 2022-03-29 09:59:51 +0200 | |
|---|---|---|
| committer | 2022-03-29 09:59:51 +0200 | |
| commit | 63fcc657c68310ce54978446d4072ca03a78b852 (patch) | |
| tree | b8e0759e4d503e037b1479de9e14885a17a91cb6 | |
| parent | f6873e5a3b8ebb63fd395e4e01e6bf29fe5655b7 (diff) | |
| download | libimobiledevice-63fcc657c68310ce54978446d4072ca03a78b852.tar.gz libimobiledevice-63fcc657c68310ce54978446d4072ca03a78b852.tar.bz2 | |
idevice: win32: Add winsock2.h include for struct sockaddr_storage
| -rw-r--r-- | src/idevice.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/idevice.c b/src/idevice.c index f984ff4..95c3aea 100644 --- a/src/idevice.c +++ b/src/idevice.c | |||
| @@ -30,6 +30,11 @@ | |||
| 30 | #include <errno.h> | 30 | #include <errno.h> |
| 31 | #include <time.h> | 31 | #include <time.h> |
| 32 | 32 | ||
| 33 | #ifdef WIN32 | ||
| 34 | #include <winsock2.h> | ||
| 35 | #include <windows.h> | ||
| 36 | #endif | ||
| 37 | |||
| 33 | #include <usbmuxd.h> | 38 | #include <usbmuxd.h> |
| 34 | 39 | ||
| 35 | #if defined(HAVE_OPENSSL) | 40 | #if defined(HAVE_OPENSSL) |
| @@ -56,10 +61,6 @@ | |||
| 56 | #include "common/userpref.h" | 61 | #include "common/userpref.h" |
| 57 | #include "common/debug.h" | 62 | #include "common/debug.h" |
| 58 | 63 | ||
| 59 | #ifdef WIN32 | ||
| 60 | #include <windows.h> | ||
| 61 | #endif | ||
| 62 | |||
| 63 | #ifndef ECONNREFUSED | 64 | #ifndef ECONNREFUSED |
| 64 | #define ECONNREFUSED 107 | 65 | #define ECONNREFUSED 107 |
| 65 | #endif | 66 | #endif |
