[vlc-commits] darwin: netconf: Fix build for iOS
Marvin Scholz
git at videolan.org
Tue Jun 11 08:38:57 CEST 2019
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Fri Jun 7 19:36:58 2019 +0200| [4e9296395a3eb5bcb4259870bc9c3031ed53c969] | committer: Felix Paul Kühne
darwin: netconf: Fix build for iOS
Signed-off-by: Felix Paul Kühne <felix at feepk.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4e9296395a3eb5bcb4259870bc9c3031ed53c969
---
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 @@ char *vlc_getProxyUrl(const char *url)
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 @@ char *vlc_getProxyUrl(const char *url)
NSString *returnValue = [[NSString alloc] initWithFormat:@"%@://%@:%i", scheme, proxyHost, proxyPort.intValue];
return strdup([returnValue UTF8String]);
}
+#endif
return NULL;
}
More information about the vlc-commits
mailing list