summaryrefslogtreecommitdiffstats
path: root/dev
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-03-21 14:54:50 +0100
committerGravatar Martin Szulecki2012-03-22 18:55:04 +0100
commit75ed654ba636dd77c0ecdc9f83c9fb526923c363 (patch)
tree8091e700138b355c1c74dbdd8054a602d93fa2e2 /dev
parentc47223c3bfedad17e4b0c99c0118c2c7b2b6b65a (diff)
downloadlibimobiledevice-75ed654ba636dd77c0ecdc9f83c9fb526923c363.tar.gz
libimobiledevice-75ed654ba636dd77c0ecdc9f83c9fb526923c363.tar.bz2
dev: Fix compiler warnings
Diffstat (limited to 'dev')
-rw-r--r--dev/ideviceclient.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/dev/ideviceclient.c b/dev/ideviceclient.c
index d952594..ab89081 100644
--- a/dev/ideviceclient.c
+++ b/dev/ideviceclient.c
@@ -25,6 +25,13 @@
#include <errno.h>
#include <glib.h>
+#ifdef WIN32
+#include <windows.h>
+#define sleep(x) Sleep(x*1000)
+#else
+#include <unistd.h>
+#endif
+
#include <libimobiledevice/libimobiledevice.h>
#include <libimobiledevice/lockdown.h>
#include <libimobiledevice/afc.h>