# HG changeset patch # User michaelm # Date 1572978842 0 # Node ID aca099f4b3ec16ce360a29fe84631b169b85a1fa # Parent f31f0c8bff892a0eb8f1e054e937239019e2a176 Check for AF_UNIX support on Windows was not correct diff -r f31f0c8bff89 -r aca099f4b3ec src/java.base/windows/native/libnio/ch/Net.c --- a/src/java.base/windows/native/libnio/ch/Net.c Tue Nov 05 16:00:51 2019 +0000 +++ b/src/java.base/windows/native/libnio/ch/Net.c Tue Nov 05 18:34:02 2019 +0000 @@ -130,7 +130,7 @@ Java_sun_nio_ch_Net_unixDomainSocketSupported(JNIEnv *env, jclass cl) { SOCKET fd = socket(PF_UNIX, SOCK_STREAM, 0); - if (fd < 0) { + if (fd == INVALID_SOCKET) { return JNI_FALSE; } closesocket(fd);