--- old/src/jdk.net/linux/native/libextnet/LinuxSocketOptions.c 2018-07-24 20:32:40.000000000 +0100 +++ new/src/jdk.net/linux/native/libextnet/LinuxSocketOptions.c 2018-07-24 20:32:39.000000000 +0100 @@ -31,6 +31,7 @@ #include #include #include "jni_util.h" +#include "net_util_md.h" #include "jdk_net_LinuxSocketOptions.h" /* @@ -86,7 +87,7 @@ (JNIEnv *env, jobject unused) { int one = 1; int rv, s; - s = socket(PF_INET, SOCK_STREAM, 0); + s = NET_Socket(PF_INET, SOCK_STREAM, 0); if (s < 0) { return JNI_FALSE; } @@ -103,7 +104,7 @@ static jint socketOptionSupported(jint sockopt) { jint one = 1; jint rv, s; - s = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); + s = NET_Socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); if (s < 0) { return 0; }