From 185871fdd39762295973c1f3db1459e04121317c Mon Sep 17 00:00:00 2001 From: Benjamin Cheng Date: Fri, 22 Sep 2023 12:49:22 -0400 Subject: [PATCH] hwcontext_vulkan: guard unistd.h include win32 typically doesn't have unistd.h, so always including it will break MSVC builds. The usage of those POSIX functions are already guarded by _WIN32, so use that to guard unistd.h include as well. --- libavutil/hwcontext_vulkan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 204b57c011..a84713e621 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -27,10 +27,10 @@ #include "compat/w32dlfcn.h" #else #include +#include #endif #include "thread.h" -#include #include "config.h" #include "pixdesc.h"