From: octo Date: Thu, 25 May 2006 11:56:38 +0000 (+0000) Subject: Build the `submit_{packages,errors}' functions when the proc interface is used.. X-Git-Tag: svn-trunk~20 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=535db1df2640fd9d79a4447f1d1852eeee8a8391;p=collectd.git Build the `submit_{packages,errors}' functions when the proc interface is used.. --- diff --git a/src/traffic.c b/src/traffic.c index 5fdcb5df..c7f71103 100644 --- a/src/traffic.c +++ b/src/traffic.c @@ -257,7 +257,7 @@ static void bytes_submit (char *dev, plugin_submit (MODULE_NAME, dev, buf); } -#if HAVE_GETIFADDRS || HAVE_LIBKSTAT +#if HAVE_GETIFADDRS || KERNEL_LINUX || HAVE_LIBKSTAT static void packets_submit (char *dev, unsigned long long rx, unsigned long long tx) @@ -293,7 +293,7 @@ static void errors_submit (char *dev, return; plugin_submit ("if_errors", dev, buf); } -#endif /* HAVE_GETIFADDRS || HAVE_LIBKSTAT */ +#endif /* HAVE_GETIFADDRS || KERNEL_LINUX || HAVE_LIBKSTAT */ static void traffic_read (void) {