diff options
Diffstat (limited to 'zebra/if_sysctl.c')
-rw-r--r-- | zebra/if_sysctl.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/zebra/if_sysctl.c b/zebra/if_sysctl.c index 5e809964..c7fecb77 100644 --- a/zebra/if_sysctl.c +++ b/zebra/if_sysctl.c @@ -20,7 +20,10 @@ * 02111-1307, USA. */ +/* This is compiled and linked if found to be required at "configure" time. */ + #include <zebra.h> +#include "if_method.h" #include "if.h" #include "sockunion.h" @@ -32,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) |