Enable IPV6 in android

This commit is contained in:
Benau 2019-08-21 14:59:13 +08:00
parent 99d7f54bd9
commit c705b8fe80
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ LOCAL_MODULE := enet
LOCAL_PATH := . LOCAL_PATH := .
LOCAL_CPP_FEATURES += rtti LOCAL_CPP_FEATURES += rtti
LOCAL_SRC_FILES := $(wildcard ../lib/enet/*.c) 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 $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS) include $(CLEAR_VARS)
@ -209,6 +209,7 @@ LOCAL_CFLAGS := -I../lib/angelscript/include \
-DUSE_GLES2 \ -DUSE_GLES2 \
-DMOBILE_STK \ -DMOBILE_STK \
-DENABLE_SOUND \ -DENABLE_SOUND \
-DENABLE_IPV6 \
-DENABLE_CRYPTO_OPENSSL \ -DENABLE_CRYPTO_OPENSSL \
-DNDEBUG \ -DNDEBUG \
-DANDROID_PACKAGE_NAME=\"$(PACKAGE_NAME)\" \ -DANDROID_PACKAGE_NAME=\"$(PACKAGE_NAME)\" \

View File

@ -40,7 +40,6 @@ extern "C"
#include <err.h> #include <err.h>
#include <netdb.h> #include <netdb.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/sysctl.h>
#include <stdlib.h> #include <stdlib.h>
#endif #endif