New test.
[mono.git] / mcs / class / System / System.Net.Sockets / SocketException.cs
index ed95ff47fdac8f2e5e402216297f4a920a818a30..ef1673c6a2c033fc10203923bb39db4fb777b6b8 100644 (file)
@@ -37,11 +37,16 @@ namespace System.Net.Sockets
        [Serializable]
        public class SocketException : Win32Exception
        {
-               [MethodImplAttribute(MethodImplOptions.InternalCall)]
-               private static extern int WSAGetLastError_internal();
-               
+#if TARGET_JVM
                public SocketException ()
-                       : base (WSAGetLastError_internal()) {
+                       : base (-2147467259)
+#else
+               [MethodImplAttribute (MethodImplOptions.InternalCall)]
+               private static extern int WSAGetLastError_internal ();
+               public SocketException ()
+                       : base (WSAGetLastError_internal ())
+#endif
+               {
                }
 
                public SocketException (int error)