From 80c135e6a6ade34f451e694d1c54598a75b1243e Mon Sep 17 00:00:00 2001 From: Mauro Rossi Date: Thu, 23 Jul 2020 22:50:32 +0200 Subject: [PATCH] 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: --- src/amd/vulkan/radv_android.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2