patch Inet4AddressImpl.c to declare IcmpSendEcho2Ex

Apparently the MinGW header files don't declare it, despite it being
part of liblphlapi.a.  More confusingly, it didn't break anything for
64-bit builds because the compiler used an implicit declaration that
matched the link-time symbol name.  Alas, no such luck for 32-bit
builds, since the implicit declaration was not annotated with the @48
stdcall argument stack size, so the build died at link time.
This commit is contained in:
Joel Dice 2016-07-01 17:45:34 -07:00
parent 110914d89f
commit ad945c00a6

View File

@ -0,0 +1,22 @@
--- openjdk/Inet4AddressImpl.c
+++ openjdk/Inet4AddressImpl.c
@@ -461,6 +461,19 @@
return JNI_FALSE;
}
+DWORD WINAPI IcmpSendEcho2Ex(HANDLE,
+ HANDLE,
+ LPVOID,
+ PVOID,
+ IPAddr,
+ IPAddr,
+ LPVOID,
+ WORD,
+ LPVOID,
+ LPVOID,
+ DWORD,
+ DWORD);
+
/**
* ping implementation.
* Send a ICMP_ECHO_REQUEST packet every second until either the timeout