File collectd-fix_broken_perl-5.10.patch of Package collectd.23723
Index: collectd-5.10.0/src/perl.c
===================================================================
--- collectd-5.10.0.orig/src/perl.c
+++ collectd-5.10.0/src/perl.c
@@ -2507,7 +2507,12 @@ static int perl_config_loadplugin(pTHX_
log_debug("perl_config: Loading Perl plugin \"%s\"", value);
load_module(PERL_LOADMOD_NOIMPORT, newSVpv(module_name, strlen(module_name)),
- Nullsv);
+#if PERL_VERSION >= 10
+ newSViv(0)
+#else
+ Nullsv
+#endif
+ );
return 0;
} /* static int perl_config_loadplugin (oconfig_item_it *) */