Blame mono-281-moonlightbuild.patch
|
Paul F. Johnson |
57c17a8 |
--- mono-2.8.1/mcs/class/System/System.Net.Sockets/Socket_2_1.cs 2010-11-12 10:24:41.000000000 +0000
|
|
Paul F. Johnson |
57c17a8 |
+++ mono-2.8.1/mcs/class/System/System.Net.Sockets/Socket_2_1-new.cs 2010-11-24 19:45:15.538121958 +0000
|
|
Paul F. Johnson |
57c17a8 |
@@ -485,7 +485,11 @@
|
|
Paul F. Johnson |
57c17a8 |
throw new ArgumentNullException ("remoteEP");
|
|
Paul F. Johnson |
57c17a8 |
|
|
Paul F. Johnson |
57c17a8 |
IPEndPoint ep = remoteEP as IPEndPoint;
|
|
Paul F. Johnson |
57c17a8 |
+#if !MOONLIGHT
|
|
Paul F. Johnson |
57c17a8 |
if (ep != null && socket_type != SocketType.Dgram) /* Dgram uses Any to 'disconnect' */
|
|
Paul F. Johnson |
57c17a8 |
+#else
|
|
Paul F. Johnson |
57c17a8 |
+ if(ep != null)
|
|
Paul F. Johnson |
57c17a8 |
+#endif
|
|
Paul F. Johnson |
57c17a8 |
if (ep.Address.Equals (IPAddress.Any) || ep.Address.Equals (IPAddress.IPv6Any))
|
|
Paul F. Johnson |
57c17a8 |
throw new SocketException ((int) SocketError.AddressNotAvailable);
|
|
Paul F. Johnson |
57c17a8 |
|