From b5ce44449216195d02df386a1799efdaffe45a67 Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Sun, 4 Sep 2022 16:03:37 -0400 Subject: Fix iOS SDK build --- src/lockdown-cu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lockdown-cu.c b/src/lockdown-cu.c index cdaf02c..61a1c03 100644 --- a/src/lockdown-cu.c +++ b/src/lockdown-cu.c @@ -62,6 +62,7 @@ #include #include #include +#include #endif #include "property_list_service.h" @@ -647,7 +648,7 @@ LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_cu_pairing_create(lockdownd_cli /* HOST INFORMATION */ char hostname[256]; -#ifdef __APPLE__ +#if defined(__APPLE__) && !defined(TARGET_OS_IPHONE) CFStringRef cname = SCDynamicStoreCopyComputerName(NULL, NULL); CFStringGetCString(cname, hostname, sizeof(hostname), kCFStringEncodingUTF8); CFRelease(cname); -- cgit v1.1-32-gdbae