forked from pool/collectd
8c70fab9da
Update to 5.8.1 Add patch to fix the psql detection on Factory builds. OBS-URL: https://build.opensuse.org/request/show/694073 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/collectd?expand=0&rev=154
19 lines
540 B
Diff
19 lines
540 B
Diff
diff --git a/src/perl.c b/src/perl.c
|
|
index 8df8fd4..94e21d2 100644
|
|
--- a/src/perl.c
|
|
+++ b/src/perl.c
|
|
@@ -2516,7 +2516,12 @@ static int perl_config_loadplugin(pTHX_ oconfig_item_t *ci) {
|
|
|
|
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 *) */
|
|
|