diff options
author | adrian <adrian@FreeBSD.org> | 2013-08-07 22:01:43 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2013-08-07 22:01:43 +0000 |
commit | 889769728063e721f306863706e7bdf7e5bed32c (patch) | |
tree | 27807591256347f025fc3dcd37fb89193eabeb30 /sys/net80211/ieee80211.c | |
parent | 0171695909e6eedf1b357fbe4da2e682b64a9e79 (diff) | |
download | FreeBSD-src-889769728063e721f306863706e7bdf7e5bed32c.zip FreeBSD-src-889769728063e721f306863706e7bdf7e5bed32c.tar.gz |
Allow net80211 to compile on stable/9 and stable/8.
Diffstat (limited to 'sys/net80211/ieee80211.c')
-rw-r--r-- | sys/net80211/ieee80211.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c index 6b6987d..a7546c9 100644 --- a/sys/net80211/ieee80211.c +++ b/sys/net80211/ieee80211.c @@ -241,9 +241,15 @@ null_transmit(struct ifnet *ifp, struct mbuf *m) return EACCES; /* XXX EIO/EPERM? */ } +#if __FreeBSD_version >= 1000031 static int null_output(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst, struct route *ro) +#else +static int +null_output(struct ifnet *ifp, struct mbuf *m, + struct sockaddr *dst, struct route *ro) +#endif { if_printf(ifp, "discard raw packet\n"); return null_transmit(ifp, m); |