Skip to content

Instantly share code, notes, and snippets.

@lucasmeijer
Created March 10, 2011 19:35
Show Gist options
  • Save lucasmeijer/864754 to your computer and use it in GitHub Desktop.
Save lucasmeijer/864754 to your computer and use it in GitHub Desktop.
diff --git a/mcs/class/System/System.Net.Sockets/NetworkStream.cs b/mcs/class/System/System.Net.Socket$
index 29c5b8b..d0db8cb 100644
--- a/mcs/class/System/System.Net.Sockets/NetworkStream.cs
+++ b/mcs/class/System/System.Net.Sockets/NetworkStream.cs
@@ -32,9 +32,9 @@
using System.IO;
using System.Runtime.InteropServices;
+using System.Threading;
#if NET_2_0 && !NET_2_1
using System.Timers;
-using System.Threading;
#endif
namespace System.Net.Sockets
@@ -144,7 +144,7 @@ namespace System.Net.Sockets
}
}
-#if NET_2_0 && !NET_2_1
+#if (NET_2_0 && !NET_2_1) || MOBILE
#if TARGET_JVM
[MonoNotSupported ("Not supported since Socket.ReceiveTimeout is not supported")]
#endif
@@ -179,7 +179,7 @@ namespace System.Net.Sockets
}
}
-#if NET_2_0 && !NET_2_1
+#if (NET_2_0 && !NET_2_1) || MOBILE
#if TARGET_JVM
[MonoNotSupported ("Not supported since Socket.SendTimeout is not supported")]
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment