summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Khem Raj2023-05-09 20:19:23 -0700
committerGravatar Nikias Bassen2023-12-16 01:04:29 +0100
commitd379401ecf5c61f2417826ab14bfc9797d2c7879 (patch)
treeb034aad9b612c853f87f11a53fe413ecb0cf96ea
parentd87213038d0a428adb3e91432a1b7f6ae4817993 (diff)
downloadlibimobiledevice-d379401ecf5c61f2417826ab14bfc9797d2c7879.tar.gz
libimobiledevice-d379401ecf5c61f2417826ab14bfc9797d2c7879.tar.bz2
idevicedevmodectl: Include unistd.h for usleep()
clang16 flags the missing header Fixes ../../git/tools/idevicedevmodectl.c:363:2: error: call to undeclared function 'usleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--tools/idevicedevmodectl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/idevicedevmodectl.c b/tools/idevicedevmodectl.c
index ba9b935..a33ec84 100644
--- a/tools/idevicedevmodectl.c
+++ b/tools/idevicedevmodectl.c
@@ -41,6 +41,7 @@
#define __usleep(x) Sleep(x/1000)
#else
#include <arpa/inet.h>
+#include <unistd.h>
#define __usleep(x) usleep(x)
#endif