diff --git a/src/perl.c b/src/perl.c
index 541826fb6eb04a2746904f2bcd441f0ec42a6e75..268e1d1428968b5d0eb4f9269ec7e2a004615bcc 100644 (file)
--- a/src/perl.c
+++ b/src/perl.c
/* do not automatically get the thread specific perl interpreter */
#define PERL_NO_GET_CONTEXT
+#define DONT_POISON_SPRINTF_YET 1
#include "collectd.h"
+#undef DONT_POISON_SPRINTF_YET
#include "configfile.h"
#include <EXTERN.h>
#include <perl.h>
+#if __GNUC__
+# pragma GCC poison sprintf
+#endif
+
#include <XSUB.h>
/* Some versions of Perl define their own version of DEBUG... :-/ */