[FFmpeg-devel] [PATCH v2 1/2] avutil/timer: Fix missing header for mach_absolute_time

Zhao Zhili quinkblack at foxmail.com
Mon Jun 17 20:03:59 EEST 2024


From: Zhao Zhili <zhilizhao at tencent.com>

mach/mach_time.h was included only when CONFIG_MACOS_KPERF wasn't
been defined.

Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>
---
 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 <mach/mach_time.h>
 #elif HAVE_CLOCK_GETTIME
 #include <time.h>
-- 
2.42.0



More information about the ffmpeg-devel mailing list