diff --git a/native/jni/external/Android.mk b/native/jni/external/Android.mk index 87afe1a06..0f890ee61 100644 --- a/native/jni/external/Android.mk +++ b/native/jni/external/Android.mk @@ -248,12 +248,12 @@ include $(BUILD_STATIC_LIBRARY) include $(CLEAR_VARS) LIBSELINUX := $(SE_PATH)/libselinux/include LOCAL_MODULE:= libselinux -LOCAL_C_INCLUDES := $(LIBSELINUX) $(LIBPCRE2) +LOCAL_C_INCLUDES := $(LIBSELINUX) $(LIBPCRE2) $(LIBSEPOL) LOCAL_EXPORT_C_INCLUDES := $(LIBSELINUX) LOCAL_STATIC_LIBRARIES := libpcre2 LOCAL_CFLAGS := \ -Wno-implicit-function-declaration -Wno-int-conversion -Wno-unused-function \ - -D_GNU_SOURCE -DUSE_PCRE2 \ + -D_GNU_SOURCE -DUSE_PCRE2 -UANDROID \ -DNO_PERSISTENTLY_STORED_PATTERNS -DDISABLE_SETRANS -DDISABLE_BOOL \ -DNO_MEDIA_BACKEND -DNO_X_BACKEND -DNO_DB_BACKEND -DNO_ANDROID_BACKEND LOCAL_SRC_FILES := \