[vlc-devel] [PATCH] darwin: netconf: Fix build for iOS
Marvin Scholz
epirat07 at gmail.com
Fri Jun 7 19:36:58 CEST 2019
---
src/darwin/netconf.m | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/darwin/netconf.m b/src/darwin/netconf.m
index aae2d9a436..cee0116fb2 100644
--- a/src/darwin/netconf.m
+++ b/src/darwin/netconf.m
@@ -46,7 +46,7 @@
if (url == NULL) {
return NULL;
}
-
+#if !TARGET_OS_IPHONE
NSDictionary *proxySettings = CFBridgingRelease(CFNetworkCopySystemProxySettings());
if (NULL != proxySettings) {
NSURL *requestedURL = [[NSURL alloc] initWithString:[NSString stringWithUTF8String:url]];
@@ -75,6 +75,7 @@
NSString *returnValue = [[NSString alloc] initWithFormat:@"%@://%@:%i", scheme, proxyHost, proxyPort.intValue];
return strdup([returnValue UTF8String]);
}
+#endif
return NULL;
}
--
2.20.1 (Apple Git-117)
More information about the vlc-devel
mailing list