forked from pool/collectd
51a752b6cc
- update to upstream version 5.5.2 - update patch collectd-fix_broken_perl-5.10.patch - drop patch collectd-df-remove-duplicates.patch: fixed upstream - add libatasmart-devel and libudev-devel as BuildRequires to enable the SMART plugin OBS-URL: https://build.opensuse.org/request/show/419179 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/collectd?expand=0&rev=137
18 lines
459 B
Diff
18 lines
459 B
Diff
--- src/perl.c.orig
|
|
+++ src/perl.c
|
|
@@ -2411,7 +2411,13 @@ 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);
|
|
+ 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 *) */
|
|
|