LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File collectd-fix_broken_perl-5.10.patch of Package collectd (Project server:monitoring)

--- src/perl.c.orig	2008-04-02 21:06:14.000000000 +0200
+++ src/perl.c	2008-04-02 21:15:50.000000000 +0200
@@ -1440,7 +1440,13 @@
 
 	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 *) */