From cb5ba675a73e7ef9e8ea0ce913bf15ba63f87d1f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 8 Jan 2003 15:04:42 +0000 Subject: [PATCH] mkdir() fix for win32 --- src/main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 813bf49cc..233c7b9a1 100644 --- a/src/main.c +++ b/src/main.c @@ -145,6 +145,12 @@ char *strdup(char *str) } #endif +#ifdef WIN32 +#include +#define F_OK 0 +#define mkdir(x,y) (mkdir)(x) +#endif + #ifdef VMS int vms_show = 0; #define FAC_CURL 0xC01 @@ -3073,7 +3079,7 @@ static int create_dir_hierarchy(char *outfile) else sprintf(dirbuildup,"%s%s", DIR_CHAR, tempdir); } - if (access(dirbuildup,F_OK) == -1) { + if (access(dirbuildup, F_OK) == -1) { result = mkdir(dirbuildup,(mode_t)0000750); if (-1 == result) { switch (errno) {