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.

(cherry picked from commit 185871fdd39762295973c1f3db1459e04121317c)
This commit is contained in:
Benjamin Cheng 2023-09-22 12:49:22 -04:00 committed by Lynne
parent 2c87aa0b23
commit 884a660cae

View File

@ -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"