Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Make it compile in the absence of networks. Closes ...



details:   https://anonhg.NetBSD.org/src/rev/6fa49cdd6d9a
branches:  trunk
changeset: 518286:6fa49cdd6d9a
user:      augustss <augustss%NetBSD.org@localhost>
date:      Tue Nov 27 17:32:57 2001 +0000

description:
Make it compile in the absence of networks.  Closes PR 14274 (mine).

diffstat:

 sys/net/if.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 523ddd180867 -r 6fa49cdd6d9a sys/net/if.c
--- a/sys/net/if.c      Tue Nov 27 16:19:43 2001 +0000
+++ b/sys/net/if.c      Tue Nov 27 17:32:57 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.99 2001/11/12 23:49:34 lukem Exp $    */
+/*     $NetBSD: if.c,v 1.100 2001/11/27 17:32:57 augustss Exp $        */
 
 /*-
  * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.99 2001/11/12 23:49:34 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.100 2001/11/27 17:32:57 augustss Exp $");
 
 #include "opt_inet.h"
 
@@ -609,6 +609,8 @@
        splx(s);
 }
 
+#if defined(INET) || defined(INET6) || defined(NETATALK) || defined(NS) || \
+    defined(ISO) || defined(CCITT) || defined(NATM)
 static void
 if_detach_queues(ifp, q)
        struct ifnet *ifp;
@@ -643,6 +645,7 @@
                IF_DROP(q);
        }
 }
+#endif /* defined(INET) || ... */
 
 /*
  * Callback for a radix tree walk to delete all references to an



Home | Main Index | Thread Index | Old Index