Browse Source

Added android ifdef to fix osx_shared_lib build

pull/1/head
Joseph Henry 10 years ago
parent
commit
9e8d4efb35
  1. 2
      src/SDK_Sockets.c

2
src/SDK_Sockets.c

@ -310,6 +310,7 @@ int (*realclose)(CLOSE_SIG);
// ----------------------- Exposed RX/TX API for Java JNI -----------------------
// ------------------------------------------------------------------------------
#if defined(__ANDROID__)
// TX
JNIEXPORT jint JNICALL Java_ZeroTier_SDK_zt_1write(JNIEnv *env, jobject thisObj, jint fd, jarray buf, jint len)
{
@ -326,6 +327,7 @@ int (*realclose)(CLOSE_SIG);
(*env)->ReleaseByteArrayElements(env, buf, body, 0);
return read_bytes;
}
#endif
// ------------------------------------------------------------------------------
// --------------------------------- setsockopt() -------------------------------

Loading…
Cancel
Save