From 4680b0f8c728a69a24e7089b777f03899bab6c9f Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 28 Aug 2005 15:12:39 +0000 Subject: Large protocol independence patch. svn path=/trunk/; revision=4280 --- interface.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'interface.c') diff --git a/interface.c b/interface.c index b4e7f063..d4688094 100644 --- a/interface.c +++ b/interface.c @@ -11,6 +11,10 @@ * * For license terms, see the file COPYING in this directory. */ + +#include "fetchmail.h" +#ifdef CAN_MONITOR + #include #include @@ -18,9 +22,6 @@ #include #endif -#if (defined(linux) && !defined(INET6_ENABLE)) || defined(__FreeBSD__) - -#include "config.h" #include #include #if defined(STDC_HEADERS) @@ -48,8 +49,6 @@ #include #endif #endif -#include "config.h" -#include "fetchmail.h" #include "socket.h" #include "i18n.h" #include "tunable.h" @@ -74,7 +73,7 @@ static char *netdevfmt; */ #define MONITOR_SLOP 5 -#if defined(linux) +#ifdef linux void interface_init(void) /* figure out which /proc/net/dev format to use */ @@ -545,7 +544,11 @@ get_ifinfo_end: #endif /* __FREEBSD_USE_SYSCTL_GET_IFFINFO */ -#endif /* defined __FreeBSD__ */ +#else + +void interface_init(void) {}; + +#endif #ifndef HAVE_INET_ATON @@ -734,4 +737,4 @@ int interface_approve(struct hostdata *hp, flag domonitor) return(TRUE); } -#endif /* (defined(linux) && !defined(INET6_ENABLE)) || defined(__FreeBSD__) */ +#endif /* CAN_MONITOR */ -- cgit v1.2.3