[vlc-devel] [PATCH] darwin: netconf: Fix build for iOS

Thomas Guillem thomas at gllm.fr
Tue Jun 11 07:54:11 CEST 2019


LGTM

On Fri, Jun 7, 2019, at 19:37, Marvin Scholz wrote:
> ---
>  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)
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list