broadcom: Fix implicit declaration of ffs for Android build
authorJose Maria Casanova Crespo <jmcasanova@igalia.com>
Wed, 30 Oct 2019 18:35:09 +0000 (19:35 +0100)
committerJose Maria Casanova Crespo <jmcasanova@igalia.com>
Thu, 6 Feb 2020 17:31:13 +0000 (18:31 +0100)
Include util/bitscan.h to ensure ffs is available when there is no
glibc like in Android.

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1983
Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2554>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2554>

src/broadcom/qpu/qpu_pack.c

index 6942342740c323a5020d31a0e3005b68dd543111..e70daf55a9fd86a0433059d4ef9cec4dfe583b62 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <string.h>
 #include "util/macros.h"
+#include "util/bitscan.h"
 
 #include "broadcom/common/v3d_device_info.h"
 #include "qpu_instr.h"