Source-Changes-HG archive

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

[src/trunk]: src/sys/net80211 + include opt_inet.h for INET (or lack thereof)



details:   https://anonhg.NetBSD.org/src/rev/0a6c352662b7
branches:  trunk
changeset: 340149:0a6c352662b7
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Aug 24 20:58:47 2015 +0000

description:
+ include opt_inet.h for INET (or lack thereof)
+ include net/in_ether.h, not netinet/in_ether.h
  (did not cause a meltdown only because opt_inet.h was missing)

diffstat:

 sys/net80211/ieee80211_amrr.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r eca020924f16 -r 0a6c352662b7 sys/net80211/ieee80211_amrr.c
--- a/sys/net80211/ieee80211_amrr.c     Mon Aug 24 18:51:37 2015 +0000
+++ b/sys/net80211/ieee80211_amrr.c     Mon Aug 24 20:58:47 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee80211_amrr.c,v 1.2 2007/12/11 12:40:10 lukem Exp $ */
+/*     $NetBSD: ieee80211_amrr.c,v 1.3 2015/08/24 20:58:47 pooka Exp $ */
 /*     $OpenBSD: ieee80211_amrr.c,v 1.1 2006/06/17 19:07:19 damien Exp $       */
 
 /*-
@@ -19,7 +19,11 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ieee80211_amrr.c,v 1.2 2007/12/11 12:40:10 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ieee80211_amrr.c,v 1.3 2015/08/24 20:58:47 pooka Exp $");
+
+#ifdef _KERNEL_OPT
+#include "opt_inet.h"
+#endif
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -27,11 +31,11 @@
 #include <sys/sysctl.h>
 
 #include <net/if.h>
+#include <net/if_ether.h>
 #include <net/if_media.h>
 
 #ifdef INET
 #include <netinet/in.h>
-#include <netinet/if_ether.h>
 #endif
 
 #include <net80211/ieee80211.h>



Home | Main Index | Thread Index | Old Index