<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
> As glib is not available in Android, added local stub header to build<br>
> igt for Android.<br>
><br>
> Signed-off-by: Jeevaka Prabu Badrappan <jeevaka.badrappan@intel.com><br>
> Acked-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com><br>
> ---<br>
> runner/executor.c | 4 ++++<br>
> runner/settings.h | 4 ++++<br>
> 2 files changed, 8 insertions(+)<br>
<br>
> Should you also add some NULL handling there?<br>
For glib stub functions g_key_file_get_string, NULL handling is already in place.</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
Regards,<br>
Jeevaka<br>
<br>
><br>
> diff --git a/runner/executor.c b/runner/executor.c<br>
> index 41f521e56..784d9eb5f 100644<br>
> --- a/runner/executor.c<br>
> +++ b/runner/executor.c<br>
> @@ -1,7 +1,11 @@<br>
> #include <ctype.h><br>
> #include <errno.h><br>
> #include <fcntl.h><br>
> +#ifdef ANDROID<br>
> +#include "android/glib.h"<br>
> +#else<br>
> #include <glib.h><br>
> +#endif<br>
> #ifdef __linux__<br>
> #include <linux/watchdog.h><br>
> #endif<br>
> diff --git a/runner/settings.h b/runner/settings.h<br>
> index 1f0b85318..ccdc7281b 100644<br>
> --- a/runner/settings.h<br>
> +++ b/runner/settings.h<br>
> @@ -5,7 +5,11 @@<br>
> #include <stddef.h><br>
> #include <sys/types.h><br>
> #include <stdio.h><br>
> +#ifdef ANDROID<br>
> +#include "android/glib.h"<br>
> +#else<br>
> #include <glib.h><br>
> +#endif<br>
> <br>
> #include "igt_list.h"<br>
> #include "igt_vec.h"<br>
> --<br>
> 2.49.0<br>
><br>
</div>
</body>
</html>