diff options
author | Evan Hunter <evan@ozhiker.com> | 2016-03-01 09:18:05 +0000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2016-03-27 11:01:48 +1000 |
commit | 4a687b39b373720201176f21c08c0f29712cbf32 (patch) | |
tree | 93f1f6848f44bbd05f14e8166e855a5a6125f355 /jim-aio.c | |
parent | 73380285fac00fe416140e199794db8e074694ff (diff) | |
download | jimtcl-4a687b39b373720201176f21c08c0f29712cbf32.zip jimtcl-4a687b39b373720201176f21c08c0f29712cbf32.tar.gz jimtcl-4a687b39b373720201176f21c08c0f29712cbf32.tar.bz2 |
aio: MinGW - Fix compilation error
Due to not having support for group or owner permission flags.
Diffstat (limited to 'jim-aio.c')
-rw-r--r-- | jim-aio.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |