forked from pool/collectd
c5eb679480
- update to version 5.7.1 - refresh patches: * collectd-fix_broken_perl-5.10.patch * collectd-split_README.patch * collectd-version.patch - drop patch collectd-5.5.2-exec-no-output.diff: fixed upstream - remove plugin write_riemann: not built anymore - add new plugins chrony, cpusleep, hugepages, notify_nagios - add lua-devel as BuildRequires and create a sub-package for the lua plugin - add gpsd-devel as BuildRequires and create a sub-package for the gps plugin OBS-URL: https://build.opensuse.org/request/show/493297 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/collectd?expand=0&rev=142
17 lines
452 B
Diff
17 lines
452 B
Diff
--- src/perl.c.orig
|
|
+++ src/perl.c
|
|
@@ -2504,7 +2504,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 *) */
|
|
|