[PATCH i-g-t] include/android: Define gboolean as bool to resolve Android build error
Jeevaka Prabu Badrappan
jeevaka.badrappan at intel.com
Thu Jun 12 14:38:19 UTC 2025
The function g_regex_match returns a gboolean, which is not defined in
the Android environment, leading to build failure. This commit
addresses the issue by typedef-ing gboolean to bool in the
Android-specific GLib header file.
Signed-off-by: Jeevaka Prabu Badrappan <jeevaka.badrappan at intel.com>
---
include/android/glib.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/android/glib.h b/include/android/glib.h
index 8540d3514..e12aaeebb 100644
--- a/include/android/glib.h
+++ b/include/android/glib.h
@@ -29,6 +29,7 @@ typedef char gchar;
typedef unsigned char guchar;
typedef void GRegex;
typedef int GRegexMatchFlags;
+typedef bool gboolean;
static inline void g_clear_error(GError **error) { }
static inline void g_error_free(GError *error) { }
--
2.49.0
More information about the igt-dev
mailing list