Module: Mesa
Branch: main
Commit: 112093f9e2d97c082f13af30bab2113f7cd47bcb
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=112093f9e2d97c082f13af30bab2113f7cd47bcb

Author: Jan Beich <[email protected]>
Date:   Wed Nov 29 04:13:26 2023 +0100

intel: make CLOCK_BOOTTIME optional for non-Linux

src/intel/common/xe/intel_gem.c:71:9: error: use of undeclared identifier 
'CLOCK_BOOTTIME'
   case CLOCK_BOOTTIME:
        ^

Fixes: ae0df368a80d ("intel/common: Add 
intel_gem_read_correlate_cpu_gpu_timestamp()")
Reviewed-by: Tapani Pälli <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26392>

---

 src/intel/common/xe/intel_gem.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/intel/common/xe/intel_gem.c b/src/intel/common/xe/intel_gem.c
index f19d8ebc83d..5832d4acb48 100644
--- a/src/intel/common/xe/intel_gem.c
+++ b/src/intel/common/xe/intel_gem.c
@@ -68,7 +68,9 @@ xe_gem_read_correlate_cpu_gpu_timestamp(int fd,
    case CLOCK_MONOTONIC_RAW:
 #endif
    case CLOCK_REALTIME:
+#ifdef CLOCK_BOOTTIME
    case CLOCK_BOOTTIME:
+#endif
 #ifdef CLOCK_TAI
    case CLOCK_TAI:
 #endif

Reply via email to