Skip to content

Commit

Permalink
fix implicit-function-declaration error when updating NDK to r26+
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronChen0 authored Aug 12, 2024
1 parent 5a10078 commit 0889bdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ LOCAL_MODULE := event
LOCAL_SRC_FILES := $(addprefix libevent/, $(LIBEVENT_SOURCES))
LOCAL_CFLAGS := -I$(LOCAL_PATH)/libevent \
-I$(LOCAL_PATH)/libevent/include \
-Wno-error=implicit-function-declaration

include $(BUILD_STATIC_LIBRARY)

Expand Down Expand Up @@ -66,7 +67,7 @@ LOCAL_STATIC_LIBRARIES := libevent

LOCAL_MODULE := redsocks
LOCAL_SRC_FILES := $(addprefix redsocks/, $(REDSOCKS_SOURCES))
LOCAL_CFLAGS := -std=gnu99 -DUSE_IPTABLES \
LOCAL_CFLAGS := -std=gnu99 -DUSE_IPTABLES -D_GNU_SOURCE\
-I$(LOCAL_PATH)/redsocks \
-I$(LOCAL_PATH)/libevent/include \
-I$(LOCAL_PATH)/libevent
Expand Down

0 comments on commit 0889bdc

Please sign in to comment.