summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: caa30bd)
raw | patch | inline | side by side (parent: caa30bd)
author | Sebastian Harl <sh@tokkee.org> | |
Sat, 12 May 2007 11:47:19 +0000 (13:47 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Sun, 13 May 2007 15:14:10 +0000 (17:14 +0200) |
Some versions of Perl define their own verion of DEBUG in perl.h overwriting
the definition found in plugin.h. This works around this issue.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
the definition found in plugin.h. This works around this issue.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
src/perl.c | patch | blob | history |
diff --git a/src/perl.c b/src/perl.c
index 021d3093606f51dfb374dcb0f97ed6b935277a81..3be3762132f1a528ed517a6180f9ef3550255d16 100644 (file)
--- a/src/perl.c
+++ b/src/perl.c
#include "collectd.h"
#include "common.h"
-#include "plugin.h"
#include "configfile.h"
#include <XSUB.h>
+/* Some versions of Perl define their own version of DEBUG... :-/ */
+#ifdef DEBUG
+# undef DEBUG
+#endif /* DEBUG */
+
+/* ... while we want the definition found in plugin.h. */
+#include "plugin.h"
+
#define PLUGIN_INIT 0
#define PLUGIN_READ 1
#define PLUGIN_WRITE 2