Fix build for (some versions of?) MinGW. Patch by Ruben Van Boxem.

llvm-svn: 133741
This commit is contained in:
Eli Friedman 2011-06-23 18:24:27 +00:00
parent ed34559fcd
commit 2c7773157c

View File

@ -89,7 +89,7 @@ static void recursive_mkdir(const char *filename) {
pathname = malloc(i + 1);
strncpy(pathname, filename, i);
pathname[i] = '\0';
#ifdef _MSC_VER
#ifdef _WIN32
_mkdir(pathname);
#else
mkdir(pathname, 0750); /* some of these will fail, ignore it. */