From c705b8fe801bab90011e4caf7879de857cac5556 Mon Sep 17 00:00:00 2001 From: Benau Date: Wed, 21 Aug 2019 14:59:13 +0800 Subject: [PATCH] Enable IPV6 in android --- android/Android.mk | 3 ++- src/network/stk_ipv6.cpp | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/Android.mk b/android/Android.mk index 4c85471db..aa0a77c02 100644 --- a/android/Android.mk +++ b/android/Android.mk @@ -135,7 +135,7 @@ LOCAL_MODULE := enet LOCAL_PATH := . LOCAL_CPP_FEATURES += rtti LOCAL_SRC_FILES := $(wildcard ../lib/enet/*.c) -LOCAL_CFLAGS := -I../lib/enet/include/ -DHAS_SOCKLEN_T +LOCAL_CFLAGS := -I../lib/enet/include/ -DHAS_SOCKLEN_T -DENABLE_IPV6 include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) @@ -209,6 +209,7 @@ LOCAL_CFLAGS := -I../lib/angelscript/include \ -DUSE_GLES2 \ -DMOBILE_STK \ -DENABLE_SOUND \ + -DENABLE_IPV6 \ -DENABLE_CRYPTO_OPENSSL \ -DNDEBUG \ -DANDROID_PACKAGE_NAME=\"$(PACKAGE_NAME)\" \ diff --git a/src/network/stk_ipv6.cpp b/src/network/stk_ipv6.cpp index 48dbdab95..82ae15a39 100644 --- a/src/network/stk_ipv6.cpp +++ b/src/network/stk_ipv6.cpp @@ -40,7 +40,6 @@ extern "C" #include #include #include -#include #include #endif