diff options
Diffstat (limited to 'Android.common.mk')
-rw-r--r-- | Android.common.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Android.common.mk b/Android.common.mk index 36d97c52dd1..327f13f5a38 100644 --- a/Android.common.mk +++ b/Android.common.mk @@ -98,6 +98,11 @@ ifeq ($(filter 5 6 7 8 9, $(MESA_ANDROID_MAJOR_VERSION)),) LOCAL_CFLAGS += -DHAVE_TIMESPEC_GET endif +# Android's libc began supporting shm in Oreo +ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 26 && echo true),true) +LOCAL_CFLAGS += -DHAVE_SYS_SHM_H +endif + ifeq ($(strip $(MESA_ENABLE_ASM)),true) ifeq ($(TARGET_ARCH),x86) LOCAL_CFLAGS += \ |