From 0da48874789426b9bacd447c67f14bf3ac52c578 Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Thu, 23 Jan 2014 16:57:11 -0500 Subject: [PATCH] [System] Exclude LinuxNetworkChange from MONOTOUCH build (since it won't work as the p/invoke are not present) --- .../System/System.Net.NetworkInformation/NetworkChange.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcs/class/System/System.Net.NetworkInformation/NetworkChange.cs b/mcs/class/System/System.Net.NetworkInformation/NetworkChange.cs index de9754e951d0a..91b0e8afca99c 100644 --- a/mcs/class/System/System.Net.NetworkInformation/NetworkChange.cs +++ b/mcs/class/System/System.Net.NetworkInformation/NetworkChange.cs @@ -107,7 +107,7 @@ static void MaybeCreate () try { networkChange = new MacNetworkChange (); } catch { -#if !NETWORK_CHANGE_STANDALONE +#if !NETWORK_CHANGE_STANDALONE && !MONOTOUCH networkChange = new LinuxNetworkChange (); #endif } @@ -318,7 +318,7 @@ static void HandleCallback (IntPtr reachability, NetworkReachabilityFlags flags, } } -#if !NETWORK_CHANGE_STANDALONE +#if !NETWORK_CHANGE_STANDALONE && !MONOTOUCH internal sealed class LinuxNetworkChange : INetworkChange { [Flags]