Source-Changes-HG archive

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

[src/trunk]: src/sys/net Include pktqueue.h only if _KERNEL



details:   https://anonhg.NetBSD.org/src/rev/c050b9b31c95
branches:  trunk
changeset: 329975:c050b9b31c95
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Mon Jun 16 03:43:10 2014 +0000

description:
Include pktqueue.h only if _KERNEL

diffstat:

 sys/net/if.h           |  4 +++-
 sys/net/if_bridgevar.h |  6 +++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (46 lines):

diff -r 7a5410afd65e -r c050b9b31c95 sys/net/if.h
--- a/sys/net/if.h      Mon Jun 16 03:34:45 2014 +0000
+++ b/sys/net/if.h      Mon Jun 16 03:43:10 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.h,v 1.166 2014/06/16 00:40:10 ozaki-r Exp $ */
+/*     $NetBSD: if.h,v 1.167 2014/06/16 03:43:10 ozaki-r Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -82,7 +82,9 @@
 
 #include <net/dlt.h>
 #include <net/pfil.h>
+#ifdef _KERNEL
 #include <net/pktqueue.h>
+#endif
 
 /*
  * Always include ALTQ glue here -- we use the ALTQ interface queue
diff -r 7a5410afd65e -r c050b9b31c95 sys/net/if_bridgevar.h
--- a/sys/net/if_bridgevar.h    Mon Jun 16 03:34:45 2014 +0000
+++ b/sys/net/if_bridgevar.h    Mon Jun 16 03:43:10 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bridgevar.h,v 1.16 2014/06/16 01:03:57 ozaki-r Exp $        */
+/*     $NetBSD: if_bridgevar.h,v 1.17 2014/06/16 03:43:10 ozaki-r Exp $        */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -78,8 +78,6 @@
 #include <sys/callout.h>
 #include <sys/queue.h>
 
-#include <net/pktqueue.h>
-
 /*
  * Commands used in the SIOCSDRVSPEC ioctl.  Note the lookup of the
  * bridge interface itself is keyed off the ifdrv structure.
@@ -207,6 +205,8 @@
 #define        ifbrp_filter    ifbrp_ifbrpu.ifbrpu_int32       /* filtering flags */
 
 #ifdef _KERNEL
+#include <net/pktqueue.h>
+
 /*
  * Timekeeping structure used in spanning tree code.
  */



Home | Main Index | Thread Index | Old Index