From 7398eb5d725daa1a8bf520c51e68303e2aa507bc Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sun, 22 Aug 2021 02:40:58 -0700 Subject: [PATCH] Updater: More MSVC build fixes --- src/feature/updater-main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/feature/updater-main.c b/src/feature/updater-main.c index 0e547cd27..8487581ec 100644 --- a/src/feature/updater-main.c +++ b/src/feature/updater-main.c @@ -22,6 +22,10 @@ #include #endif +#ifndef W_OK +#define W_OK 02 +#endif + bool extractArchive(struct VDir* archive, const char* root) { char path[PATH_MAX] = {0}; struct VDirEntry* vde;