egl/android: include "util/compiler.h" for FALLTHROUGH macro
authorMauro Rossi <issor.oruam@gmail.com>
Thu, 15 Apr 2021 19:34:12 +0000 (21:34 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 16 Apr 2021 16:42:20 +0000 (16:42 +0000)
Fixes the following building error:

external/mesa/src/egl/drivers/dri2/platform_android.c:1263:10: error: use of undeclared identifier 'FALLTHROUGH'
         FALLTHROUGH; /* for pbuffers */
         ^
1 error generated.

Fixes: 2928c21eb73b ("Convert most remaining free-form fall-through comments to FALLTHROUGH")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10264>

src/egl/drivers/dri2/platform_android.c

index 1fb3166..2fff5ac 100644 (file)
@@ -39,6 +39,7 @@
 #include <sys/types.h>
 #include <drm-uapi/drm_fourcc.h>
 
+#include "util/compiler.h"
 #include "util/os_file.h"
 
 #include "loader.h"