diff options
author | eivind <eivind@FreeBSD.org> | 1998-11-15 19:30:48 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1998-11-15 19:30:48 +0000 |
commit | 1f0835622c84471991884e8b8ff557bf605bc7b1 (patch) | |
tree | cffd7835bfdb126b4d5e460f3e6b879473dca1a6 /sys | |
parent | 3331f029dcf961b9a0c91921698fab3803776e51 (diff) | |
download | FreeBSD-src-1f0835622c84471991884e8b8ff557bf605bc7b1.zip FreeBSD-src-1f0835622c84471991884e8b8ff557bf605bc7b1.tar.gz |
Depend on __FreeBSD_version instead of __FreeBSD__
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/wl/if_wl.c | 14 | ||||
-rw-r--r-- | sys/i386/isa/if_wl.c | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c index 31f7c31..73fc3ac 100644 --- a/sys/dev/wl/if_wl.c +++ b/sys/dev/wl/if_wl.c @@ -1,4 +1,4 @@ -/* $Id: if_wl.c,v 1.15 1998/08/24 02:28:15 bde Exp $ */ +/* $Id: if_wl.c,v 1.16 1998/10/22 05:58:39 bde Exp $ */ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -332,7 +332,7 @@ static void wl_cache_store(int, int, struct ether_header *, struct mbuf *); static void wl_cache_zero(int unit); #endif #ifdef MULTICAST -# if __FreeBSD < 3 +# if defined(__FreeBSD__) && __FreeBSD_version < 300000 static int check_allmulti(int unit); # endif #endif @@ -682,7 +682,7 @@ wlinit(void *xsc) if (sc->wl_if.if_flags & IFF_DEBUG) printf("wl%d: entered wlinit()\n",sc->unit); #endif -#if __FreeBSD__ >= 3 +#if defined(__FreeBSD__) && __FreeBSD_version >= 300000 if (ifp->if_addrhead.tqh_first == (struct ifaddr *)0) { #else if (ifp->if_addrlist == (struct ifaddr *)0) { @@ -1259,7 +1259,7 @@ wlioctl(struct ifnet *ifp, u_long cmd, caddr_t data) case SIOCADDMULTI: case SIOCDELMULTI: -#if __FreeBSD__ < 3 +#if defined(__FreeBSD__) && __FreeBSD_version < 300000 if (cmd == SIOCADDMULTI) { error = ether_addmulti(ifr, &sc->wl_ac); } @@ -2039,7 +2039,7 @@ wlconfig(int unit) short base = sc->base; #if MULTICAST -#if __FreeBSD__ >= 3 +#if defined(__FreeBSD__) && __FreeBSD_version >= 300000 struct ifmultiaddr *ifma; u_char *addrp; #else @@ -2108,7 +2108,7 @@ wlconfig(int unit) outw(PIOP1(base), 0); /* ac_status */ outw(PIOP1(base), AC_MCSETUP|AC_CW_EL); /* ac_command */ outw(PIOR1(base), OFFSET_CU + 8); -#if __FreeBSD__ >= 3 +#if defined(__FreeBSD__) && __FreeBSD_version >= 300000 for (ifma = sc->wl_if.if_multiaddrs.lh_first; ifma; ifma = ifma->ifma_link.le_next) { if (ifma->ifma_addr->sa_family != AF_LINK) @@ -2684,7 +2684,7 @@ void wl_cache_store (int unit, int base, struct ether_header *eh, */ #ifdef MULTICAST -#if __FreeBSD__ < 3 /* not required */ +#if defined(__FreeBSD__) && __FreeBSD_version < 300000 /* not required */ static int check_allmulti(int unit) { diff --git a/sys/i386/isa/if_wl.c b/sys/i386/isa/if_wl.c index 31f7c31..73fc3ac 100644 --- a/sys/i386/isa/if_wl.c +++ b/sys/i386/isa/if_wl.c @@ -1,4 +1,4 @@ -/* $Id: if_wl.c,v 1.15 1998/08/24 02:28:15 bde Exp $ */ +/* $Id: if_wl.c,v 1.16 1998/10/22 05:58:39 bde Exp $ */ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -332,7 +332,7 @@ static void wl_cache_store(int, int, struct ether_header *, struct mbuf *); static void wl_cache_zero(int unit); #endif #ifdef MULTICAST -# if __FreeBSD < 3 +# if defined(__FreeBSD__) && __FreeBSD_version < 300000 static int check_allmulti(int unit); # endif #endif @@ -682,7 +682,7 @@ wlinit(void *xsc) if (sc->wl_if.if_flags & IFF_DEBUG) printf("wl%d: entered wlinit()\n",sc->unit); #endif -#if __FreeBSD__ >= 3 +#if defined(__FreeBSD__) && __FreeBSD_version >= 300000 if (ifp->if_addrhead.tqh_first == (struct ifaddr *)0) { #else if (ifp->if_addrlist == (struct ifaddr *)0) { @@ -1259,7 +1259,7 @@ wlioctl(struct ifnet *ifp, u_long cmd, caddr_t data) case SIOCADDMULTI: case SIOCDELMULTI: -#if __FreeBSD__ < 3 +#if defined(__FreeBSD__) && __FreeBSD_version < 300000 if (cmd == SIOCADDMULTI) { error = ether_addmulti(ifr, &sc->wl_ac); } @@ -2039,7 +2039,7 @@ wlconfig(int unit) short base = sc->base; #if MULTICAST -#if __FreeBSD__ >= 3 +#if defined(__FreeBSD__) && __FreeBSD_version >= 300000 struct ifmultiaddr *ifma; u_char *addrp; #else @@ -2108,7 +2108,7 @@ wlconfig(int unit) outw(PIOP1(base), 0); /* ac_status */ outw(PIOP1(base), AC_MCSETUP|AC_CW_EL); /* ac_command */ outw(PIOR1(base), OFFSET_CU + 8); -#if __FreeBSD__ >= 3 +#if defined(__FreeBSD__) && __FreeBSD_version >= 300000 for (ifma = sc->wl_if.if_multiaddrs.lh_first; ifma; ifma = ifma->ifma_link.le_next) { if (ifma->ifma_addr->sa_family != AF_LINK) @@ -2684,7 +2684,7 @@ void wl_cache_store (int unit, int base, struct ether_header *eh, */ #ifdef MULTICAST -#if __FreeBSD__ < 3 /* not required */ +#if defined(__FreeBSD__) && __FreeBSD_version < 300000 /* not required */ static int check_allmulti(int unit) { |