summaryrefslogtreecommitdiffstats
path: root/zebra/if_sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/if_sysctl.c')
-rw-r--r--zebra/if_sysctl.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/zebra/if_sysctl.c b/zebra/if_sysctl.c
index 8c78daa6..c7fecb77 100644
--- a/zebra/if_sysctl.c
+++ b/zebra/if_sysctl.c
@@ -35,6 +35,16 @@
#include "zebra/rt.h"
#include "zebra/kernel_socket.h"
+#include "zebra/interface.h"
+
+/* zebra/interface.h declares some extern functions for if_sysctl.c
+ *
+ * The following are not declared if HAVE_NET_RT_IFLIST is not defined.
+ * So declare them here if required, in order to suppress warnings.
+ */
+#ifndef HAVE_NET_RT_IFLIST
+extern void ifstat_update_sysctl (void);
+#endif
void
ifstat_update_sysctl (void)