[PATCH v4 04/15] runner: Include local igt_glib header for Android

Jeevaka Prabu Badrappan jeevaka.badrappan at intel.com
Wed May 7 16:01:37 UTC 2025


Signed-off-by: Jeevaka Prabu Badrappan <jeevaka.badrappan at intel.com>
---
 runner/executor.c | 4 ++++
 runner/settings.h | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/runner/executor.c b/runner/executor.c
index 41f521e56..7be02cea1 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -1,7 +1,11 @@
 #include <ctype.h>
 #include <errno.h>
 #include <fcntl.h>
+#ifndef ANDROID
 #include <glib.h>
+#else
+#include "igt_glib.h"
+#endif
 #ifdef __linux__
 #include <linux/watchdog.h>
 #endif
diff --git a/runner/settings.h b/runner/settings.h
index 1f0b85318..36a69036c 100644
--- a/runner/settings.h
+++ b/runner/settings.h
@@ -5,7 +5,11 @@
 #include <stddef.h>
 #include <sys/types.h>
 #include <stdio.h>
+#ifndef ANDROID
 #include <glib.h>
+#else
+#include "igt_glib.h"
+#endif
 
 #include "igt_list.h"
 #include "igt_vec.h"
-- 
2.34.1



More information about the igt-dev mailing list