Author: logesh.sekar<logesh.sekar@timesys.com>
Date: Wed, 18 Mar 2026 09:24:57 +0530

---
 tests/intel/gem_mmap_offset.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/intel/gem_mmap_offset.c b/tests/intel/gem_mmap_offset.c
index d3c56ab..69f1c68 100644
--- a/tests/intel/gem_mmap_offset.c
+++ b/tests/intel/gem_mmap_offset.c
@@ -37,6 +37,11 @@
 #include "i915/intel_memory_region.h"
 #include "igt.h"
 #include "igt_x86.h"
+
+#ifndef MAP_FIXED_NOREPLACE
+#define MAP_FIXED_NOREPLACE 0x100000
+#endif
+
 /**
  * TEST: gem mmap offset
  * Description: Basic MMAP_OFFSET IOCTL tests for mem regions
-- 
 tests/intel/xe_query.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/intel/xe_query.c b/tests/intel/xe_query.c
index b6db50b..b6787c8 100644
--- a/tests/intel/xe_query.c
+++ b/tests/intel/xe_query.c
@@ -20,6 +20,9 @@
 #include "xe/xe_ioctl.h"
 #include "xe/xe_query.h"
 #include "intel_hwconfig_types.h"
+#ifndef CLOCK_TAI
+#define CLOCK_TAI			11
+#endif
 
 void dump_hex(void *buffer, int len);
 void dump_hex_debug(void *buffer, int len);
-- 
2.34.1

