mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 02:31:27 +00:00
libimobiledevice: Fix build with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
|||||||
|
From 6cb8069cfe08114f1dc7b50a7fcd4dc040cd1bbb Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Tue, 9 May 2023 20:19:23 -0700
|
||||||
|
Subject: [PATCH] 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]
|
||||||
|
|
||||||
|
Upstream-Status: Submitted [https://github.com/libimobiledevice/libimobiledevice/pull/1444]
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
|
tools/idevicedevmodectl.c | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/tools/idevicedevmodectl.c b/tools/idevicedevmodectl.c
|
||||||
|
index 739bc13..9fe8d6a 100644
|
||||||
|
--- a/tools/idevicedevmodectl.c
|
||||||
|
+++ b/tools/idevicedevmodectl.c
|
||||||
|
@@ -34,6 +34,7 @@
|
||||||
|
#ifndef WIN32
|
||||||
|
#include <signal.h>
|
||||||
|
#endif
|
||||||
|
+#include <unistd.h>
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
#include <windows.h>
|
||||||
|
--
|
||||||
|
2.40.1
|
||||||
|
|
||||||
@@ -11,7 +11,8 @@ DEPENDS = "libplist usbmuxd libusbmuxd libtasn1 gnutls libgcrypt libimobiledevic
|
|||||||
PV = "1.3.0+git${SRCPV}"
|
PV = "1.3.0+git${SRCPV}"
|
||||||
|
|
||||||
SRCREV = "860ffb707af3af94467d2ece4ad258dda957c6cd"
|
SRCREV = "860ffb707af3af94467d2ece4ad258dda957c6cd"
|
||||||
SRC_URI = "git://github.com/libimobiledevice/libimobiledevice;protocol=https;branch=master"
|
SRC_URI = "git://github.com/libimobiledevice/libimobiledevice;protocol=https;branch=master \
|
||||||
|
file://0001-include-unistd.h-for-usleep.patch"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
inherit autotools pkgconfig
|
inherit autotools pkgconfig
|
||||||
|
|||||||
Reference in New Issue
Block a user