[PATCH i-g-t v7 03/14] tests: Include local igt_glib header for Android
Jeevaka Prabu Badrappan
jeevaka.badrappan at intel.com
Fri May 16 17:11:42 UTC 2025
Signed-off-by: Jeevaka Prabu Badrappan <jeevaka.badrappan at intel.com>
Acked-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
---
tests/intel/api_intel_bb.c | 4 ++++
tests/intel/gem_ccs.c | 4 ++++
tests/intel/xe_ccs.c | 4 ++++
tests/intel/xe_intel_bb.c | 4 ++++
tests/testdisplay.h | 4 ++++
5 files changed, 20 insertions(+)
diff --git a/tests/intel/api_intel_bb.c b/tests/intel/api_intel_bb.c
index 4a1c9be91..a7d257363 100644
--- a/tests/intel/api_intel_bb.c
+++ b/tests/intel/api_intel_bb.c
@@ -35,7 +35,11 @@
#include <errno.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
+#ifdef ANDROID
+#include "android/glib.h"
+#else
#include <glib.h>
+#endif
#include <zlib.h>
#include "intel_bufops.h"
#include "i915/gem_vm.h"
diff --git a/tests/intel/gem_ccs.c b/tests/intel/gem_ccs.c
index af1e85f6a..a84a47cc4 100644
--- a/tests/intel/gem_ccs.c
+++ b/tests/intel/gem_ccs.c
@@ -4,7 +4,11 @@
*/
#include <errno.h>
+#ifdef ANDROID
+#include "android/glib.h"
+#else
#include <glib.h>
+#endif
#include <sys/ioctl.h>
#include <sys/time.h>
#include <malloc.h>
diff --git a/tests/intel/xe_ccs.c b/tests/intel/xe_ccs.c
index e154bf4dc..bff5b5772 100644
--- a/tests/intel/xe_ccs.c
+++ b/tests/intel/xe_ccs.c
@@ -4,7 +4,11 @@
*/
#include <errno.h>
+#ifdef ANDROID
+#include "android/glib.h"
+#else
#include <glib.h>
+#endif
#include <sys/ioctl.h>
#include <sys/time.h>
#include <malloc.h>
diff --git a/tests/intel/xe_intel_bb.c b/tests/intel/xe_intel_bb.c
index d8bd7b519..25d172301 100644
--- a/tests/intel/xe_intel_bb.c
+++ b/tests/intel/xe_intel_bb.c
@@ -6,7 +6,11 @@
#include <cairo.h>
#include <errno.h>
#include <fcntl.h>
+#ifdef ANDROID
+#include "android/glib.h"
+#else
#include <glib.h>
+#endif
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/tests/testdisplay.h b/tests/testdisplay.h
index 27f8209e2..0f606c028 100644
--- a/tests/testdisplay.h
+++ b/tests/testdisplay.h
@@ -24,7 +24,11 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#ifdef ANDROID
+#include "android/glib.h"
+#else
#include <glib.h>
+#endif
extern int drm_fd;
--
2.49.0
More information about the igt-dev
mailing list