mirror of
https://github.com/corda/corda.git
synced 2025-03-15 08:41:04 +00:00
fix non-windows java-net.cpp build
This commit is contained in:
parent
47d9039b69
commit
5e7e539c2a
@ -13,12 +13,14 @@
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
# include <winsock2.h>
|
||||
# define ONLY_ON_WINDOWS(x) x
|
||||
#else
|
||||
# include <netdb.h>
|
||||
# define ONLY_ON_WINDOWS(x)
|
||||
#endif
|
||||
|
||||
extern "C" JNIEXPORT void JNICALL
|
||||
Java_java_net_Socket_init(JNIEnv* e, jclass)
|
||||
Java_java_net_Socket_init(JNIEnv* ONLY_ON_WINDOWS(e), jclass)
|
||||
{
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
static bool wsaInitialized = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user