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: ae0df368a8 ("intel/common: Add intel_gem_read_correlate_cpu_gpu_timestamp()")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26392>
This commit is contained in:
Jan Beich 2023-11-29 04:13:26 +01:00 committed by Marge Bot
parent 5c32c41f65
commit 112093f9e2

View file

@ -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