diff options
author | Werner Koch <wk@gnupg.org> | 2007-06-26 15:48:44 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2007-06-26 15:48:44 +0200 |
commit | a7fe86bc02f5b33cfc3c48a4d2e15d3ff94ffa16 (patch) | |
tree | 56d859ed11c7dc6faec9df7d6c55fbdf3b334b87 /gl | |
parent | Fixed a problem in estream-printf.c. (diff) | |
download | gnupg2-a7fe86bc02f5b33cfc3c48a4d2e15d3ff94ffa16.tar.xz gnupg2-a7fe86bc02f5b33cfc3c48a4d2e15d3ff94ffa16.zip |
More W32 related changes
Diffstat (limited to 'gl')
-rw-r--r-- | gl/mkdtemp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gl/mkdtemp.c b/gl/mkdtemp.c index 60bbd0aa4..c3460782a 100644 --- a/gl/mkdtemp.c +++ b/gl/mkdtemp.c @@ -74,9 +74,6 @@ #ifdef __MINGW32__ # include <io.h> -/* mingw's _mkdir() function has 1 argument, but we pass 2 arguments. - Therefore we have to disable the argument count checking. */ -# define mkdir ((int (*)()) _mkdir) #endif #if !_LIBC @@ -177,7 +174,11 @@ gen_tempname (char *tmpl) v /= 62; XXXXXX[5] = letters[v % 62]; +#ifdef MKDIR_TAKES_ONE_ARG + fd = mkdir (tmpl); +#else fd = __mkdir (tmpl, S_IRUSR | S_IWUSR | S_IXUSR); +#endif if (fd >= 0) { |