summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-12-22 02:26:55 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-12-22 02:26:55 +0000
commitf5060714df0f00e45a9c7091f8f8706f7225b547 (patch)
treee007b2eaf7d8a2e1945f639b49bc43895f8dc057 /sys/arch/macppc/dev
parent0ea9167b77e90db329a6febb88b957a60ad830d5 (diff)
unifdef INET
Diffstat (limited to 'sys/arch/macppc/dev')
-rw-r--r--sys/arch/macppc/dev/if_bm.c4
-rw-r--r--sys/arch/macppc/dev/if_mc.c4
-rw-r--r--sys/arch/macppc/dev/if_wi_obio.c4
3 files changed, 3 insertions, 9 deletions
diff --git a/sys/arch/macppc/dev/if_bm.c b/sys/arch/macppc/dev/if_bm.c
index f64df84891e..2da23be90d9 100644
--- a/sys/arch/macppc/dev/if_bm.c
+++ b/sys/arch/macppc/dev/if_bm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bm.c,v 1.28 2013/10/23 10:31:19 mpi Exp $ */
+/* $OpenBSD: if_bm.c,v 1.29 2014/12/22 02:26:53 tedu Exp $ */
/* $NetBSD: if_bm.c,v 1.1 1999/01/01 01:27:52 tsubai Exp $ */
/*-
@@ -757,12 +757,10 @@ bmac_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
ifp->if_flags |= IFF_UP;
switch (ifa->ifa_addr->sa_family) {
-#ifdef INET
case AF_INET:
bmac_init(sc);
arp_ifinit(&sc->arpcom, ifa);
break;
-#endif
default:
bmac_init(sc);
break;
diff --git a/sys/arch/macppc/dev/if_mc.c b/sys/arch/macppc/dev/if_mc.c
index afdc9fad62c..55c6ec0a06b 100644
--- a/sys/arch/macppc/dev/if_mc.c
+++ b/sys/arch/macppc/dev/if_mc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mc.c,v 1.17 2014/07/22 10:35:35 mpi Exp $ */
+/* $OpenBSD: if_mc.c,v 1.18 2014/12/22 02:26:53 tedu Exp $ */
/* $NetBSD: if_mc.c,v 1.9.16.1 2006/06/21 14:53:13 yamt Exp $ */
/*-
@@ -499,10 +499,8 @@ mc_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
ifp->if_flags |= IFF_UP;
if (!(ifp->if_flags & IFF_RUNNING))
mc_init(sc);
-#ifdef INET
if (ifa->ifa_addr->sa_family == AF_INET)
arp_ifinit(&sc->sc_arpcom, ifa);
-#endif
break;
case SIOCSIFFLAGS:
diff --git a/sys/arch/macppc/dev/if_wi_obio.c b/sys/arch/macppc/dev/if_wi_obio.c
index 73a7512b6ba..64be2e5d952 100644
--- a/sys/arch/macppc/dev/if_wi_obio.c
+++ b/sys/arch/macppc/dev/if_wi_obio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wi_obio.c,v 1.17 2011/07/03 15:47:16 matthew Exp $ */
+/* $OpenBSD: if_wi_obio.c,v 1.18 2014/12/22 02:26:53 tedu Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -56,10 +56,8 @@
#include <net/if_dl.h>
#include <net/if_media.h>
-#ifdef INET
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#endif
#include <net80211/ieee80211.h>
#include <net80211/ieee80211_ioctl.h>