From ae4dda9f0c40945e4ccdf925d1897c4b739ff932 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 17 Sep 2005 13:30:13 +0000 Subject: Fix build problem (missing interface_init()) on FreeBSD. svn path=/trunk/; revision=4291 --- interface.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/interface.c b/interface.c index d4688094..f01fb1ba 100644 --- a/interface.c +++ b/interface.c @@ -74,6 +74,7 @@ static char *netdevfmt; #define MONITOR_SLOP 5 #ifdef linux +#define have_interface_init void interface_init(void) /* figure out which /proc/net/dev format to use */ @@ -544,10 +545,10 @@ get_ifinfo_end: #endif /* __FREEBSD_USE_SYSCTL_GET_IFFINFO */ -#else +#endif +#ifndef have_interface_init void interface_init(void) {}; - #endif -- cgit v1.2.3