Skip to content

Commit d6bcfce

Browse files
committed
Fix error building with ndk r15b
Signed-off-by: Shaka Huang <shakalaca@gmail.com>
1 parent 2f4fbd9 commit d6bcfce

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Android_library.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,13 @@ include $(CLEAR_VARS)
300300
LOCAL_MODULE := libcutils
301301

302302
LOCAL_CFLAGS := \
303-
-Werror -Wall -Wextra -std=gnu90
303+
-Werror -Wall -Wextra -std=gnu90 -Wno-typedef-redefinition
304304

305305
LOCAL_CPPFLAGS := -std=c++14
306306

307307
LOCAL_C_INCLUDES := \
308-
src/system/core/include
308+
src/system/core/include \
309+
$(NDK_ROOT)/platforms/$(TARGET_PLATFORM)/arch-$(TARGET_ARCH)/usr/include
309310

310311
LOCAL_SRC_FILES += \
311312
src/system/core/libcutils/atomic.c.arm \

0 commit comments

Comments
 (0)