From: Mauro Rossi Date: Thu, 23 Jul 2020 20:50:32 +0000 (+0200) Subject: radv: fix build on Android 7 (v2) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=80c135e6a6ade34f451e694d1c54598a75b1243e;p=mesa.git radv: fix build on Android 7 (v2) Fixes the following building error: external/mesa/src/amd/vulkan/radv_android.c:28:10: fatal error: 'vndk/hardware_buffer.h' file not found ^~~~~~~~~~~~~~~~~~~~~~~~ (v2) use the existing preprocessor condition #if ANDROID_API_LEVEL >= 26 Fixes: f36b527 "radv/android: Add android hardware buffer queries." Reported-and-tested-by: youling 257 Signed-off-by: Mauro Rossi Reviewed-by: Bas Nieuwenhuizen Part-of: --- diff --git a/src/amd/vulkan/radv_android.c b/src/amd/vulkan/radv_android.c index 6be0391b8d9..b445b30e0ff 100644 --- a/src/amd/vulkan/radv_android.c +++ b/src/amd/vulkan/radv_android.c @@ -25,13 +25,13 @@ #include #include #include -#include #include #include #include #if ANDROID_API_LEVEL >= 26 #include +#include #endif #endif