Now that we have COMPAT_FREEBSD6 officially, use it from opt_compat.h.

This commit is contained in:
ru 2006-09-26 12:41:13 +00:00
parent d4abbeb0fe
commit 196675b4cb
2 changed files with 6 additions and 2 deletions

View File

@ -6,9 +6,12 @@ KMOD= wlan
SRCS= ieee80211.c ieee80211_crypto.c ieee80211_crypto_none.c \
ieee80211_freebsd.c ieee80211_input.c ieee80211_ioctl.c \
ieee80211_node.c ieee80211_output.c ieee80211_proto.c
SRCS+= bus_if.h device_if.h opt_inet.h opt_ipx.h
SRCS+= bus_if.h device_if.h opt_compat.h opt_inet.h opt_ipx.h
.if !defined(KERNBUILDDIR)
opt_compat.h:
echo "#define COMPAT_FREEBSD6" > ${.TARGET}
opt_inet.h:
echo "#define INET 1" > opt_inet.h

View File

@ -33,6 +33,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include "opt_compat.h"
/*
* IEEE 802.11 ioctl support (FreeBSD-specific)
*/
@ -975,7 +977,6 @@ ieee80211_ioctl_getstastats(struct ieee80211com *ic, struct ieee80211req *ireq)
return error;
}
#define COMPAT_FREEBSD6
#ifdef COMPAT_FREEBSD6
#define IEEE80211_IOC_SCAN_RESULTS_OLD 24