From: Todd C. Miller Date: Mon, 3 Jul 1995 18:16:16 +0000 (+0000) Subject: added #ifdef to make it compile on strange arches X-Git-Tag: SUDO_1_4_0~308 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba502e7deb6413cd4d0ad94f4dc8a041c96552d3;p=sudo added #ifdef to make it compile on strange arches --- diff --git a/interfaces.c b/interfaces.c index fc03c2929..e89e80e97 100644 --- a/interfaces.c +++ b/interfaces.c @@ -98,6 +98,7 @@ extern int Argc; extern char **Argv; +#ifdef SIOCGIFCONF /********************************************************************** * * load_interfaces() @@ -265,3 +266,19 @@ static struct ifreq *next_if(cur) return(next); } + +#else /* SIOCGIFCONF */ + +/********************************************************************** + * + * load_interfaces() + * + * Stub function for those without SIOCGIFCONF + */ + +void load_interfaces() +{ + return; +} + +#endif /* SIOCGIFCONF */