Merge pull request #795 from vincentbernat/fix/libstatgrab
[collectd.git] / src / daemon / collectd.c
index eb5404f..9cba913 100644 (file)
@@ -308,7 +308,11 @@ static int do_init (void)
 #endif
 
 #if HAVE_LIBSTATGRAB
-       if (sg_init ())
+       if (sg_init (
+# if HAVE_LIBSTATGRAB_INIT_ARG
+                   0
+# endif
+                   ))
        {
                ERROR ("sg_init: %s", sg_str_error (sg_get_error ()));
                return (-1);