[FFmpeg-cvslog] hwcontext_vulkan: hide Linux-only header after 571756bf2fe2

Jan Beich git at videolan.org
Fri Jul 21 21:06:54 EEST 2023


ffmpeg | branch: master | Jan Beich <jbeich at FreeBSD.org> | Sat Jul 15 04:57:47 2023 +0200| [e6bd8b132372f64a3378c069cb9855d3d91bde09] | committer: Lynne

hwcontext_vulkan: hide Linux-only header after 571756bf2fe2

major/minor are in <sys/types.h> on BSDs and <sys/mkdev.h> on Solaris-like.

libavutil/hwcontext_vulkan.c:55:10: fatal error: 'sys/sysmacros.h' file not found
#include <sys/sysmacros.h>
^~~~~~~~~~~~~~~~~

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e6bd8b132372f64a3378c069cb9855d3d91bde09
---

 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 <va/va_drmcommon.h>
 #endif
+#ifdef __linux__
 #include <sys/sysmacros.h>
+#endif
 #include <sys/stat.h>
 #include <xf86drm.h>
 #include <drm_fourcc.h>



More information about the ffmpeg-cvslog mailing list