projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates from savannah outage
[pspp]
/
lib
/
mkdtemp.c
diff --git
a/lib/mkdtemp.c
b/lib/mkdtemp.c
index 2f46c18edfadc8ef6538f268fcd750ea65eae6ca..ac66ae29d424c5e713cf8bf83daec2a7e3ce26bc 100644
(file)
--- a/
lib/mkdtemp.c
+++ b/
lib/mkdtemp.c
@@
-85,6
+85,12
@@
# define S_IXUSR 00100
#endif
# define S_IXUSR 00100
#endif
+#ifdef __MINGW32__
+/* 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
# define __getpid getpid
# define __gettimeofday gettimeofday
#if !_LIBC
# define __getpid getpid
# define __gettimeofday gettimeofday