summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-03-29 09:59:51 +0200
committerGravatar Nikias Bassen2022-03-29 09:59:51 +0200
commit63fcc657c68310ce54978446d4072ca03a78b852 (patch)
treeb8e0759e4d503e037b1479de9e14885a17a91cb6
parentf6873e5a3b8ebb63fd395e4e01e6bf29fe5655b7 (diff)
downloadlibimobiledevice-63fcc657c68310ce54978446d4072ca03a78b852.tar.gz
libimobiledevice-63fcc657c68310ce54978446d4072ca03a78b852.tar.bz2
idevice: win32: Add winsock2.h include for struct sockaddr_storage
-rw-r--r--src/idevice.c9
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 @@
#include <errno.h>
#include <time.h>
+#ifdef WIN32
+#include <winsock2.h>
+#include <windows.h>
+#endif
+
#include <usbmuxd.h>
#if defined(HAVE_OPENSSL)
@@ -56,10 +61,6 @@
#include "common/userpref.h"
#include "common/debug.h"
-#ifdef WIN32
-#include <windows.h>
-#endif
-
#ifndef ECONNREFUSED
#define ECONNREFUSED 107
#endif