Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb if doing #ifdef INET, you need opt_inet.h!



details:   https://anonhg.NetBSD.org/src/rev/6606cbb925d4
branches:  trunk
changeset: 784103:6606cbb925d4
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Jan 18 13:45:51 2013 +0000

description:
if doing #ifdef INET, you need opt_inet.h!

diffstat:

 sys/dev/usb/if_urtwn.c |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (39 lines):

diff -r b9f609ab878c -r 6606cbb925d4 sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c    Fri Jan 18 07:34:39 2013 +0000
+++ b/sys/dev/usb/if_urtwn.c    Fri Jan 18 13:45:51 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_urtwn.c,v 1.10 2013/01/18 01:41:07 jmcneill Exp $   */
+/*     $NetBSD: if_urtwn.c,v 1.11 2013/01/18 13:45:51 jmcneill Exp $   */
 /*     $OpenBSD: if_urtwn.c,v 1.20 2011/11/26 06:39:33 ckuethe Exp $   */
 
 /*-
@@ -22,7 +22,11 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.10 2013/01/18 01:41:07 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.11 2013/01/18 13:45:51 jmcneill Exp $");
+
+#ifdef _KERNEL_OPT
+#include "opt_inet.h"
+#endif
 
 #include <sys/param.h>
 #include <sys/sockio.h>
@@ -52,6 +56,7 @@
 #include <netinet/in_systm.h>
 #include <netinet/in_var.h>
 #include <netinet/ip.h>
+#include <netinet/if_inarp.h>
 
 #include <net80211/ieee80211_netbsd.h>
 #include <net80211/ieee80211_var.h>
@@ -2354,7 +2359,7 @@
                ifp->if_flags |= IFF_UP;
 #ifdef INET
                if (ifa->ifa_addr->sa_family == AF_INET)
-                       arp_ifinit(&ic->ic_ac, ifa);
+                       arp_ifinit(ifp, ifa);
 #endif
                /*FALLTHROUGH*/
        case SIOCSIFFLAGS:



Home | Main Index | Thread Index | Old Index