SHA256
1
0
forked from pool/collectd
collectd/collectd-fix_broken_perl-5.10.patch
2011-02-03 01:08:32 +00:00

18 lines
490 B
Diff

--- src/perl.c.orig 2008-04-02 21:06:14.000000000 +0200
+++ src/perl.c 2008-04-02 21:15:50.000000000 +0200
@@ -1440,7 +1440,13 @@
log_debug ("perl_config: loading perl plugin \"%s\"", value);
load_module (PERL_LOADMOD_NOIMPORT,
- newSVpv (module_name, strlen (module_name)), Nullsv);
+ newSVpv (module_name, strlen (module_name)),
+#if PERL_VERSION >= 10
+ newSViv(0)
+#else
+ Nullsv
+#endif
+ );
return 0;
} /* static int perl_config_loadplugin (oconfig_item_it *) */