From 535db1df2640fd9d79a4447f1d1852eeee8a8391 Mon Sep 17 00:00:00 2001 From: octo Date: Thu, 25 May 2006 11:56:38 +0000 Subject: [PATCH] Build the `submit_{packages,errors}' functions when the proc interface is used.. --- src/traffic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.11.0