aboutsummaryrefslogtreecommitdiffstats
path: root/g10/mkdtemp.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/mkdtemp.c')
-rw-r--r--g10/mkdtemp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/g10/mkdtemp.c b/g10/mkdtemp.c
index 625ab148f..50a083005 100644
--- a/g10/mkdtemp.c
+++ b/g10/mkdtemp.c
@@ -11,6 +11,11 @@
#include "types.h"
#include "cipher.h"
+#ifdef MKDIR_TAKES_ONE_ARG
+# undef mkdir
+# define mkdir(a,b) mkdir(a)
+#endif
+
char *mkdtemp(char *template)
{
int attempts,idx,count=0;