From ed6a33d08071bf18f4ba9c76b3be86da17c1707e Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Thu, 22 Jun 2023 11:49:54 +0200 Subject: [PATCH] More Windows fixes --- src/dwarfs/os_access_generic.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dwarfs/os_access_generic.cpp b/src/dwarfs/os_access_generic.cpp index 6877e174..7c69e485 100644 --- a/src/dwarfs/os_access_generic.cpp +++ b/src/dwarfs/os_access_generic.cpp @@ -172,8 +172,10 @@ os_access_generic::map_file(std::string const& path, size_t size) const { } int os_access_generic::access(std::string const& path, int mode) const { +#ifdef _WIN32 // TODO -#ifndef _WIN32 + return 0; +#else return ::access(path.c_str(), mode); #endif }