2019-04-27 12:18:32 +02:00
|
|
|
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) {
|
2011-02-03 02:08:32 +01:00
|
|
|
|
2017-05-18 00:05:22 +02:00
|
|
|
log_debug("perl_config: Loading Perl plugin \"%s\"", value);
|
|
|
|
load_module(PERL_LOADMOD_NOIMPORT, newSVpv(module_name, strlen(module_name)),
|
|
|
|
- Nullsv);
|
2011-02-03 02:08:32 +01:00
|
|
|
+#if PERL_VERSION >= 10
|
2017-05-18 00:05:22 +02:00
|
|
|
+ newSViv(0)
|
2011-02-03 02:08:32 +01:00
|
|
|
+#else
|
2017-05-18 00:05:22 +02:00
|
|
|
+ Nullsv
|
2011-02-03 02:08:32 +01:00
|
|
|
+#endif
|
2017-05-18 00:05:22 +02:00
|
|
|
+ );
|
|
|
|
return 0;
|
2011-02-03 02:08:32 +01:00
|
|
|
} /* static int perl_config_loadplugin (oconfig_item_it *) */
|
|
|
|
|