egl: Fix implicit declaration of ffs
authorKevin Strasser <kevin.strasser@intel.com>
Thu, 12 Sep 2019 16:38:24 +0000 (09:38 -0700)
committerKevin Strasser <kevin.strasser@intel.com>
Mon, 30 Sep 2019 21:33:43 +0000 (14:33 -0700)
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@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/egl/drivers/dri2/egl_dri2.c

index f968cd7af27db0e29c655ecadfbe9bd9ea1329c1..82a0bed5c62ee30e453f9ae93c13fc81fd4c0b5a 100644 (file)
@@ -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.
  */