From 9d95098a99921b430c271e972779b4852f59e7e4 Mon Sep 17 00:00:00 2001 From: Francesco Chemolli <5175948+kinkie@users.noreply.github.com> Date: Fri, 14 Mar 2025 17:21:31 +0000 Subject: [PATCH] MinGW: add mkdir adapter (#2018) On Windows, mkdir only takes one argument. compat/mswindows.h has an adapter, add it to compat/mingw.h as well. Solves error: ``` UFSSwapDir.cc:617:26: error: too many arguments to function 'int mkdir(const char*)' mingw/include/io.h:282:15: note: declared here int __cdecl mkdir (const char *); ``` --- compat/os/mingw.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compat/os/mingw.h b/compat/os/mingw.h index fa904a9ec2..5bc721b8af 100644 --- a/compat/os/mingw.h +++ b/compat/os/mingw.h @@ -46,5 +46,7 @@ fsync(int fd) } #endif +#define mkdir(p,F) mkdir((p)) + #endif /* _SQUID_MINGW_*/ #endif /* SQUID_COMPAT_OS_MINGW_H */ -- 2.47.2