From e6bd8b132372f64a3378c069cb9855d3d91bde09 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sat, 15 Jul 2023 04:57:47 +0200 Subject: [PATCH] hwcontext_vulkan: hide Linux-only header after 571756bf2fe2 major/minor are in on BSDs and on Solaris-like. libavutil/hwcontext_vulkan.c:55:10: fatal error: 'sys/sysmacros.h' file not found #include ^~~~~~~~~~~~~~~~~ --- libavutil/hwcontext_vulkan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index ca802cc86e..75314f1407 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -52,7 +52,9 @@ #if CONFIG_VAAPI #include #endif +#ifdef __linux__ #include +#endif #include #include #include