mirror of
https://github.com/corda/corda.git
synced 2025-01-03 19:54:13 +00:00
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:
parent
110914d89f
commit
ad945c00a6
22
openjdk-patches/Inet4AddressImpl.c.8.patch
Normal file
22
openjdk-patches/Inet4AddressImpl.c.8.patch
Normal 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
|
Loading…
Reference in New Issue
Block a user