diff options
author | 2022-09-04 16:03:37 -0400 | |
---|---|---|
committer | 2022-09-04 16:03:37 -0400 | |
commit | b5ce44449216195d02df386a1799efdaffe45a67 (patch) | |
tree | ae5a7628e0cc4643e83612bb4076db95cf4b8c21 /src | |
parent | 377dda29ea0b5d28ff59c23be2a2a380fd6630ba (diff) | |
download | libimobiledevice-b5ce44449216195d02df386a1799efdaffe45a67.tar.gz libimobiledevice-b5ce44449216195d02df386a1799efdaffe45a67.tar.bz2 |
Fix iOS SDK build
Diffstat (limited to 'src')
-rw-r--r-- | src/lockdown-cu.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ | |||
62 | #include <sys/sysctl.h> | 62 | #include <sys/sysctl.h> |
63 | #include <SystemConfiguration/SystemConfiguration.h> | 63 | #include <SystemConfiguration/SystemConfiguration.h> |
64 | #include <CoreFoundation/CoreFoundation.h> | 64 | #include <CoreFoundation/CoreFoundation.h> |
65 | #include <TargetConditionals.h> | ||
65 | #endif | 66 | #endif |
66 | 67 | ||
67 | #include "property_list_service.h" | 68 | #include "property_list_service.h" |
@@ -647,7 +648,7 @@ LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_cu_pairing_create(lockdownd_cli | |||
647 | 648 | ||
648 | /* HOST INFORMATION */ | 649 | /* HOST INFORMATION */ |
649 | char hostname[256]; | 650 | char hostname[256]; |
650 | #ifdef __APPLE__ | 651 | #if defined(__APPLE__) && !defined(TARGET_OS_IPHONE) |
651 | CFStringRef cname = SCDynamicStoreCopyComputerName(NULL, NULL); | 652 | CFStringRef cname = SCDynamicStoreCopyComputerName(NULL, NULL); |
652 | CFStringGetCString(cname, hostname, sizeof(hostname), kCFStringEncodingUTF8); | 653 | CFStringGetCString(cname, hostname, sizeof(hostname), kCFStringEncodingUTF8); |
653 | CFRelease(cname); | 654 | CFRelease(cname); |