compile fix for win32

This commit is contained in:
Bill Currie 2002-03-18 22:40:52 +00:00
parent 2338d0c157
commit d7487a1344
1 changed files with 4 additions and 0 deletions

View File

@ -220,7 +220,11 @@ make_parents (const char *_path)
for (p = path; *p && (d = strchr (p, '/')); p = d + 1) {
t = *d;
*d = 0;
#ifdef WIN32
if (mkdir (path) < 0)
#else
if (mkdir (path, 0777) < 0)
#endif
if (errno != EEXIST)
return -1;
*d = t;