diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2023-07-15 04:57:47 +0200 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2023-07-21 20:04:10 +0200 |
commit | e6bd8b132372f64a3378c069cb9855d3d91bde09 (patch) | |
tree | 5a75da3887b5f73eac1cf9ab1a9e5ba313a16b92 | |
parent | 74474a551b63f778776e94d094c5ea55c3639b9b (diff) | |
download | ffmpeg-e6bd8b132372f64a3378c069cb9855d3d91bde09.tar.gz |
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>
^~~~~~~~~~~~~~~~~
-rw-r--r-- | libavutil/hwcontext_vulkan.c | 2 |
1 files changed, 2 insertions, 0 deletions
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> |