[PATCH i-g-t] include/android: Define gboolean as bool to resolve Android build error
Badrappan, Jeevaka
jeevaka.badrappan at intel.com
Thu Jun 12 18:39:07 UTC 2025
Hi Kamil,
On 2025-06-12 at 14:38:19 +0000, Jeevaka Prabu Badrappan wrote:
> The function g_regex_match returns a gboolean, which is not defined in
> the Android environment, leading to build failure. This commit
> imho first sentence is enough. You do not need to translate
> C code into english.
> 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;
> How did you missed it? Was it lost with too many errors/warnings?
Apologies for the oversight. It appears that the changes were present in my local build, but the patches were generated without including this specific change.
I will work on a solution to ensure that builds are independent which should help address these kinds of issues.
Thanks,
Jeevaka
More information about the igt-dev
mailing list