From: Mauro Rossi Date: Sun, 28 Apr 2019 19:56:06 +0000 (+0200) Subject: amdgpu: fix redefinition building errors X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fexternal-minigbm.git;a=commitdiff_plain;h=6c315f677ef1b59958a9273188e05e99d8d8fc92;ds=sidebyside amdgpu: fix redefinition building errors Fixes the following building errors: In file included from external/minigbm/amdgpu.c:16: In file included from external/minigbm/dri.h:13: external/mesa/include/GL/internal/dri_interface.h:46:22: error: redefinition of typedef 'drm_context_t' is a C11 feature [-Werror,-Wtypedef-redefinition] typedef unsigned int drm_context_t; ^ external/libdrm/include/drm/drm.h:77:22: note: previous definition is here typedef unsigned int drm_context_t; ^ --- diff --git a/Android.mk b/Android.mk index 2a598c6..b9fce4f 100644 --- a/Android.mk +++ b/Android.mk @@ -44,7 +44,7 @@ LOCAL_CPPFLAGS += -std=c++14 -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 \ LOCAL_CFLAGS += -Wall -Wsign-compare -Wpointer-arith \ -Wcast-qual -Wcast-align \ -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 \ - -Wno-unused-value -Wno-unused-parameter + -Wno-unused-value -Wno-unused-parameter -Wno-typedef-redefinition LOCAL_C_INCLUDES += frameworks/native/libs/nativebase/include \ frameworks/native/libs/nativewindow/include \