[System] xamarin_start_wwan is not available for tvOS and watchOS.
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Wed, 13 Jan 2016 13:53:15 +0000 (14:53 +0100)
committerRolf Bjarne Kvinge <rolf@xamarin.com>
Wed, 13 Jan 2016 14:13:03 +0000 (15:13 +0100)
mcs/class/System/System.Net/WebConnection.cs

index 97d15a285e04ce081f0fee2028ccea25d83c0823..8c1523ad82484bb59a94c69298e2e3337a0b2c98 100644 (file)
@@ -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
                                }