From: Jim Radford Date: Sat, 10 Aug 2013 16:29:06 +0000 (-0700) Subject: perl plugin: #undef macros before poisoning them. X-Git-Tag: collectd-5.5.0~121^2 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=0beeec00eeeabf9f1ff30d55d7b8c4032f6f24b7;p=collectd.git perl plugin: #undef macros before poisoning them. This fixes --enable-debug builds. --- diff --git a/src/perl.c b/src/perl.c index 78e508ae..4d777395 100644 --- a/src/perl.c +++ b/src/perl.c @@ -41,6 +41,7 @@ #include #if defined(COLLECT_DEBUG) && COLLECT_DEBUG && defined(__GNUC__) && __GNUC__ +# undef sprintf # pragma GCC poison sprintf #endif