mono/mono-281-moonlightbuild.patch
Paul F. Johnson 57c17a8718 - Bump to latest bug release version
- Fix libgdiplus config patch
- Add moonlight build patch
- Disable moonlight profile (currently broken)
- Minor spec file changes
2010-12-21 08:39:37 +00:00

15 lines
628 B
Diff

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