From 981741888bb8a32bf1f1b2f456f814a5f1c2ef1a Mon Sep 17 00:00:00 2001 From: Rainer Emrich Date: Tue, 10 Feb 2015 14:13:13 +0000 Subject: [PATCH] re PR gcov-profile/61889 (gcov-tool.c uses nftw, ftw.h) 2015-02-10 Rainer Emrich PR gcov-profile/61889 * libgcc/libgcov-driver-system.c: undefine clashing macro for mkdir. From-SVN: r220582 --- libgcc/ChangeLog | 5 +++++ libgcc/libgcov-driver-system.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index d5540b0ab38..651b30307c4 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2015-02-10 Rainer Emrich + + PR gcov-profile/61889 + * libgcc/libgcov-driver-system.c: undefine clashing macro for mkdir. + 2015-02-02 Nick Clifton * config/rl78/fpmath-sf.S (__rl78_int_pack_a_r8): Fix edge case diff --git a/libgcc/libgcov-driver-system.c b/libgcc/libgcov-driver-system.c index 56d08002173..94f198dcefb 100644 --- a/libgcc/libgcov-driver-system.c +++ b/libgcc/libgcov-driver-system.c @@ -66,6 +66,9 @@ create_file_directory (char *filename) #ifdef TARGET_POSIX_IO && mkdir (filename, 0755) == -1 #else +#ifdef mkdir +#undef mkdir +#endif && mkdir (filename) == -1 #endif /* The directory might have been made by another process. */ -- 2.30.2