diff options
Diffstat (limited to 'gcc/gcov-tool.c')
-rw-r--r-- | gcc/gcov-tool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcov-tool.c b/gcc/gcov-tool.c index a83b797..71331ca 100644 --- a/gcc/gcov-tool.c +++ b/gcc/gcov-tool.c @@ -90,8 +90,8 @@ gcov_output_files (const char *out, struct gcov_info *profile) /* Try to make directory if it doesn't already exist. */ if (access (out, F_OK) == -1) { -#ifdef TARGET_POSIX_IO - if (mkdir (out, 0755) == -1 && errno != EEXIST) +#if !defined(_WIN32) + if (mkdir (out, S_IRWXU | S_IRWXG | S_IRWXO) == -1 && errno != EEXIST) #else if (mkdir (out) == -1 && errno != EEXIST) #endif |