From ec1daa39e046df27b0b0ba30b57391464c710228 Mon Sep 17 00:00:00 2001 From: Zhao Zhili Date: Tue, 18 Jun 2024 01:03:59 +0800 Subject: [PATCH] avutil/timer: Fix missing header for mach_absolute_time mach/mach_time.h was included only when CONFIG_MACOS_KPERF wasn't been defined. Signed-off-by: Zhao Zhili --- libavutil/timer.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavutil/timer.h b/libavutil/timer.h index 6bd6a0c645..9fe6aa1385 100644 --- a/libavutil/timer.h +++ b/libavutil/timer.h @@ -44,7 +44,9 @@ #if CONFIG_MACOS_KPERF #include "macos_kperf.h" -#elif HAVE_MACH_ABSOLUTE_TIME +#endif + +#if HAVE_MACH_ABSOLUTE_TIME #include #elif HAVE_CLOCK_GETTIME #include