summaryrefslogtreecommitdiff
path: root/src/lib/evil/evil_stdlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evil/evil_stdlib.c')
-rw-r--r--src/lib/evil/evil_stdlib.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/lib/evil/evil_stdlib.c b/src/lib/evil/evil_stdlib.c
index b03625a..d6de5a4 100644
--- a/src/lib/evil/evil_stdlib.c
+++ b/src/lib/evil/evil_stdlib.c
@@ -5,20 +5,14 @@
5#include <stdlib.h> 5#include <stdlib.h>
6#include <stdio.h> 6#include <stdio.h>
7#include <io.h> 7#include <io.h>
8#include <direct.h>
8#include <fcntl.h> 9#include <fcntl.h>
9#include <sys/stat.h> 10#include <sys/stat.h>
10#include <sys/types.h> 11#include <sys/types.h>
11 12
12#include <errno.h> 13#include <errno.h>
13 14
14#ifndef WIN32_LEAN_AND_MEAN 15#include "evil_private.h"
15# define WIN32_LEAN_AND_MEAN
16#endif
17#include <windows.h>
18#undef WIN32_LEAN_AND_MEAN
19
20#include "evil_macro.h"
21#include "evil_stdlib.h"
22 16
23/* 17/*
24 * Environment variable related functions 18 * Environment variable related functions
@@ -146,7 +140,7 @@ mkdtemp(char *__template)
146 { 140 {
147 val = _mkstemp(suffix, val); 141 val = _mkstemp(suffix, val);
148 142
149 if (mkdir(__template) == 0) 143 if (_mkdir(__template) == 0)
150 return __template; 144 return __template;
151 145
152 if (errno == EFAULT || 146 if (errno == EFAULT ||