llvm.org GIT mirror llvm / aeebc35
Fix build for (some versions of?) MinGW. Patch by Ruben Van Boxem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133741 91177308-0d34-0410-b5e6-96231b3b80d8 Eli Friedman 8 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
8888 pathname = malloc(i + 1);
8989 strncpy(pathname, filename, i);
9090 pathname[i] = '\0';
91 #ifdef _MSC_VER
91 #ifdef _WIN32
9292 _mkdir(pathname);
9393 #else
9494 mkdir(pathname, 0750); /* some of these will fail, ignore it. */