From 4a687b39b373720201176f21c08c0f29712cbf32 Mon Sep 17 00:00:00 2001 From: Evan Hunter Date: Tue, 1 Mar 2016 09:18:05 +0000 Subject: [PATCH] aio: MinGW - Fix compilation error Due to not having support for group or owner permission flags. --- jim-aio.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jim-aio.c b/jim-aio.c index 1ac3b56..0d11648 100644 --- a/jim-aio.c +++ b/jim-aio.c @@ -1800,7 +1800,12 @@ int Jim_MakeTempFile(Jim_Interp *interp, const char *template) filenameObj = Jim_NewStringObj(interp, template, -1); } +#if defined(S_IRWXG) && defined(S_IRWXO) mask = umask(S_IXUSR | S_IRWXG | S_IRWXO); +#else + /* MinGW does not have group/owner permissions */ + mask = umask(S_IXUSR); +#endif /* Update the template name directly with the filename */ fd = mkstemp(filenameObj->bytes); -- 2.11.4.GIT