aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Cheng <ben@bcheng.me>2023-09-22 12:49:22 -0400
committerLynne <dev@lynne.ee>2023-12-11 16:36:56 +0100
commit185871fdd39762295973c1f3db1459e04121317c (patch)
tree853ba9e7d20f89ee5d8175572946e883bb222b05
parente37b15e26fbc7bc31a86a4a2c7c798e20d4f4c2c (diff)
downloadffmpeg-185871fdd39762295973c1f3db1459e04121317c.tar.gz
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.
-rw-r--r--libavutil/hwcontext_vulkan.c2
1 files changed, 1 insertions, 1 deletions
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 <dlfcn.h>
+#include <unistd.h>
#endif
#include "thread.h"
-#include <unistd.h>
#include "config.h"
#include "pixdesc.h"