From 779ba750f7faa68c594339399cb710ca362b3465 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 10 Jun 2013 21:27:12 +0200 Subject: [PATCH] Fix compilation with clang. --- src/coloredstderr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/coloredstderr.c b/src/coloredstderr.c index d4ffdb6..cc58883 100644 --- a/src/coloredstderr.c +++ b/src/coloredstderr.c @@ -38,6 +38,11 @@ /* Conflicting declaration in glibc. */ #undef fwrite_unlocked +/* These functions may be macros when compiling with hardening flags (fortify) + * which cause build failures when used in our hook macros below. Observed + * with Clang on Debian Wheezy. */ +#undef printf +#undef fprintf /* Used by various functions, including debug(). */ -- 2.45.2