diff options
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/interface.c b/interface.c index 75d975f9..e7175cbf 100644 --- a/interface.c +++ b/interface.c @@ -56,6 +56,8 @@ struct interface_pair_s { static char *netdevfmt; +#if defined(linux) + void interface_init(void) /* figure out which /roc/dev/net format to use */ { @@ -79,9 +81,6 @@ void interface_init(void) } } - -#if defined(linux) - static int _get_ifinfo_(int socket_fd, FILE *stats_file, const char *ifname, ifinfo_t *ifinfo) /* get active network interface information - return non-zero upon success */ |