diff options
author | Khem Raj | 2023-05-09 20:19:23 -0700 |
---|---|---|
committer | Nikias Bassen | 2023-12-16 01:04:29 +0100 |
commit | d379401ecf5c61f2417826ab14bfc9797d2c7879 (patch) | |
tree | b034aad9b612c853f87f11a53fe413ecb0cf96ea | |
parent | d87213038d0a428adb3e91432a1b7f6ae4817993 (diff) | |
download | libimobiledevice-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.c | 1 |
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 |