Skip to content

Commit c705b8f

Browse files
committed
Enable IPV6 in android
1 parent 99d7f54 commit c705b8f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

android/Android.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ LOCAL_MODULE := enet
135135
LOCAL_PATH := .
136136
LOCAL_CPP_FEATURES += rtti
137137
LOCAL_SRC_FILES := $(wildcard ../lib/enet/*.c)
138-
LOCAL_CFLAGS := -I../lib/enet/include/ -DHAS_SOCKLEN_T
138+
LOCAL_CFLAGS := -I../lib/enet/include/ -DHAS_SOCKLEN_T -DENABLE_IPV6
139139
include $(BUILD_STATIC_LIBRARY)
140140
include $(CLEAR_VARS)
141141

@@ -209,6 +209,7 @@ LOCAL_CFLAGS := -I../lib/angelscript/include \
209209
-DUSE_GLES2 \
210210
-DMOBILE_STK \
211211
-DENABLE_SOUND \
212+
-DENABLE_IPV6 \
212213
-DENABLE_CRYPTO_OPENSSL \
213214
-DNDEBUG \
214215
-DANDROID_PACKAGE_NAME=\"$(PACKAGE_NAME)\" \

src/network/stk_ipv6.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ extern "C"
4040
#include <err.h>
4141
#include <netdb.h>
4242
#include <sys/socket.h>
43-
#include <sys/sysctl.h>
4443
#include <stdlib.h>
4544
#endif
4645

0 commit comments

Comments
 (0)