Mesa (master): egl: Fix implicit declaration of ffs

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Oct 1 08:56:51 UTC 2019


Module: Mesa
Branch: master
Commit: 641320ce02ff438a314be35fea8f0cf60ab20faf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=641320ce02ff438a314be35fea8f0cf60ab20faf

Author: Kevin Strasser <kevin.strasser at intel.com>
Date:   Thu Sep 12 09:38:24 2019 -0700

egl: Fix implicit declaration of ffs

Found when building for Android in C99 mode. Include bitscan.h to ensure ffs is
available.

Fixes: 7b4ed2b5 ("egl: Convert configs to use shifts and sizes instead of masks")

Signed-off-by: Kevin Strasser <kevin.strasser at intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom at intel.com>

---

 src/egl/drivers/dri2/egl_dri2.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index f968cd7af27..82a0bed5c62 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -65,6 +65,7 @@
 #include "util/u_atomic.h"
 #include "util/u_vector.h"
 #include "mapi/glapi/glapi.h"
+#include "util/bitscan.h"
 
 /* Additional definitions not yet in the drm_fourcc.h.
  */




More information about the mesa-commit mailing list