src/windows/native/java/net/Inet4AddressImpl.c

Print this page

        

@@ -475,11 +475,11 @@
 
     /*
      * Can't create a raw socket, so let's try a TCP socket
      */
     fd = NET_Socket(AF_INET, SOCK_STREAM, 0);
-    if (fd == JVM_IO_ERR) {
+    if (fd == SOCKET_ERROR) {
         /* note: if you run out of fds, you may not be able to load
          * the exception class, and get a NoClassDefFoundError
          * instead.
          */
         NET_ThrowNew(env, WSAGetLastError(), "Can't create socket");