From c010ebc09ee04d91e529c26c94ef9c142833c9f6 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Wed, 13 Jan 2016 14:53:15 +0100 Subject: [PATCH] [System] xamarin_start_wwan is not available for tvOS and watchOS. --- mcs/class/System/System.Net/WebConnection.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mcs/class/System/System.Net/WebConnection.cs b/mcs/class/System/System.Net/WebConnection.cs index 97d15a285e0..8c1523ad824 100644 --- a/mcs/class/System/System.Net/WebConnection.cs +++ b/mcs/class/System/System.Net/WebConnection.cs @@ -86,7 +86,7 @@ namespace System.Net static object classLock = new object (); MonoTlsStream tlsStream; -#if MONOTOUCH +#if MONOTOUCH && !MONOTOUCH_TV && !MONOTOUCH_WATCH [System.Runtime.InteropServices.DllImport ("__Internal")] static extern void xamarin_start_wwan (string uri); #endif @@ -152,7 +152,7 @@ namespace System.Net IPHostEntry hostEntry = sPoint.HostEntry; if (hostEntry == null) { -#if MONOTOUCH +#if MONOTOUCH && !MONOTOUCH_TV && !MONOTOUCH_WATCH xamarin_start_wwan (sPoint.Address.ToString ()); hostEntry = sPoint.HostEntry; if (hostEntry == null) { @@ -160,7 +160,7 @@ namespace System.Net status = sPoint.UsesProxy ? WebExceptionStatus.ProxyNameResolutionFailure : WebExceptionStatus.NameResolutionFailure; return; -#if MONOTOUCH +#if MONOTOUCH && !MONOTOUCH_TV && !MONOTOUCH_WATCH } #endif } -- 2.25.1