wrap Windows-specific code in Inet4AddressImpl.c.8.patch in a preprocessor check

This commit is contained in:
Joel Dice 2016-09-27 18:09:53 -06:00
parent 96ed0fda84
commit fb53bf1f42

View File

@ -1,9 +1,10 @@
--- openjdk/Inet4AddressImpl.c
+++ openjdk/Inet4AddressImpl.c
@@ -461,6 +461,19 @@
@@ -461,6 +461,21 @@
return JNI_FALSE;
}
+#ifdef WIN32
+DWORD WINAPI IcmpSendEcho2Ex(HANDLE,
+ HANDLE,
+ LPVOID,
@ -16,6 +17,7 @@
+ LPVOID,
+ DWORD,
+ DWORD);
+#endif
+
/**
* ping implementation.