Module: Mesa Branch: main Commit: 5c32c41f657d875114a7c25b8c9da4a089da7f4a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c32c41f657d875114a7c25b8c9da4a089da7f4a
Author: Jan Beich <[email protected]> Date: Wed Nov 29 04:13:26 2023 +0100 intel: make CLOCK_TAI optional for non-Linux src/intel/common/xe/intel_gem.c:72:9: error: use of undeclared identifier 'CLOCK_TAI' case CLOCK_TAI: ^ 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 dfe061ea9bb..f19d8ebc83d 100644 --- a/src/intel/common/xe/intel_gem.c +++ b/src/intel/common/xe/intel_gem.c @@ -69,7 +69,9 @@ xe_gem_read_correlate_cpu_gpu_timestamp(int fd, #endif case CLOCK_REALTIME: case CLOCK_BOOTTIME: +#ifdef CLOCK_TAI case CLOCK_TAI: +#endif break; default: return false;
