re PR gcov-profile/61889 (gcov-tool.c uses nftw, ftw.h)

2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>

	PR gcov-profile/61889
	* gcov-tool.c: Remove wrong #if !defined(_WIN32)

From-SVN: r220584
This commit is contained in:
Rainer Emrich 2015-02-10 14:14:58 +00:00 committed by Kai Tietz
parent 471274de91
commit e4c2ac365c
2 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
PR gcov-profile/61889
* gcov-tool.c: Remove wrong #if !defined(_WIN32)
2015-02-10 Richard Biener <rguenther@suse.de>
PR tree-optimization/64995

View File

@ -99,11 +99,7 @@ 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)
{
#if !defined(_WIN32)
if (mkdir (out, S_IRWXU | S_IRWXG | S_IRWXO) == -1 && errno != EEXIST)
#else
if (mkdir (out) == -1 && errno != EEXIST)
#endif
fatal_error (input_location, "Cannot make directory %s", out);
} else
unlink_profile_dir (out);