aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--interface.c5
1 files 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