@@ -561,11 +561,11 @@ } #endif /* No good, let's fall back on TCP */ fd = NET_Socket(AF_INET6, 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, errno, "Can't create socket");