Merge pull request #504 from dicej/windows-patch

wrap Windows-specific code in Inet4AddressImpl.c.8.patch in a preprocessor check
This commit is contained in:
Joel Dice 2016-09-27 21:04:10 -06:00 committed by GitHub
commit e55c8eb1ff

View File

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