mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Fun times in ~~cleveland~~ NDK-land
This commit is contained in:
parent
6448189d20
commit
b41e0910b0
3 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
# NDK_TOOLCHAIN_VERSION := clang3.5
|
# NDK_TOOLCHAIN_VERSION := clang3.5
|
||||||
APP_STL := c++_static
|
APP_STL := c++_static
|
||||||
APP_CPPFLAGS := -Wall -fstack-protector -fexceptions -fno-strict-aliasing -frtti -Wno-deprecated-register -DZT_NO_TYPE_PUNNING=1
|
APP_CPPFLAGS := -Wall -fstack-protector -fexceptions -fno-strict-aliasing -frtti -Wno-deprecated-register -DZT_NO_TYPE_PUNNING=1 -DZT_SSO_SUPPORTED=0 -DOMIT_JSON_SUPPORT=1
|
||||||
APP_PLATFORM := android-21
|
APP_PLATFORM := android-21
|
||||||
APP_ABI := all
|
APP_ABI := all
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#include "ZT_jniarray.h"
|
#include "ZT_jniarray.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <cassert>
|
||||||
|
|
||||||
jclass java_util_ArrayList;
|
jclass java_util_ArrayList;
|
||||||
jmethodID java_util_ArrayList_;
|
jmethodID java_util_ArrayList_;
|
||||||
|
|
|
@ -311,7 +311,7 @@ class Binder {
|
||||||
#else
|
#else
|
||||||
const bool gotViaProc = false;
|
const bool gotViaProc = false;
|
||||||
#endif
|
#endif
|
||||||
#if ! defined(ZT_SDK) || ! defined(__ANDROID__) // getifaddrs() freeifaddrs() not available on Android
|
#if ! (defined(ZT_SDK) || defined(__ANDROID__)) // getifaddrs() freeifaddrs() not available on Android
|
||||||
if (! gotViaProc) {
|
if (! gotViaProc) {
|
||||||
struct ifaddrs* ifatbl = (struct ifaddrs*)0;
|
struct ifaddrs* ifatbl = (struct ifaddrs*)0;
|
||||||
struct ifaddrs* ifa;
|
struct ifaddrs* ifa;
|
||||||
|
|
Loading…
Add table
Reference in a new issue