]> granicus.if.org Git - sudo/commitdiff
added #ifdef to make it compile on strange arches
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 3 Jul 1995 18:16:16 +0000 (18:16 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 3 Jul 1995 18:16:16 +0000 (18:16 +0000)
interfaces.c

index fc03c2929f35faf72f2dcfa0366623b3203c81fb..e89e80e9750989e485333f12dadb9d47614fe8e6 100644 (file)
@@ -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 */