mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
9bb3d6b972
git-subtree-dir: sgx-jvm/avian git-subtree-mainline:f978eab8d1
git-subtree-split:09e4fe60d0
25 lines
459 B
Diff
25 lines
459 B
Diff
--- openjdk/Inet4AddressImpl.c
|
|
+++ openjdk/Inet4AddressImpl.c
|
|
@@ -461,6 +461,21 @@
|
|
return JNI_FALSE;
|
|
}
|
|
|
|
+#ifdef WIN32
|
|
+DWORD WINAPI IcmpSendEcho2Ex(HANDLE,
|
|
+ HANDLE,
|
|
+ LPVOID,
|
|
+ PVOID,
|
|
+ IPAddr,
|
|
+ IPAddr,
|
|
+ LPVOID,
|
|
+ WORD,
|
|
+ LPVOID,
|
|
+ LPVOID,
|
|
+ DWORD,
|
|
+ DWORD);
|
|
+#endif
|
|
+
|
|
/**
|
|
* ping implementation.
|
|
* Send a ICMP_ECHO_REQUEST packet every second until either the timeout
|