From 59ba8d73767c5e3d9a65f31d97432b6de9773311 Mon Sep 17 00:00:00 2001 From: Jonathan Gray <jsg@cvs.openbsd.org> Date: Fri, 24 Jul 2009 17:22:38 +0000 Subject: wrap the kernel specific parts in an _KERNEL ifdef. ok reyk@ --- sys/dev/ic/athvar.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sys/dev/ic/athvar.h b/sys/dev/ic/athvar.h index 05db2d96aec..bf3d173abe2 100644 --- a/sys/dev/ic/athvar.h +++ b/sys/dev/ic/athvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: athvar.h,v 1.25 2008/08/29 11:15:32 reyk Exp $ */ +/* $OpenBSD: athvar.h,v 1.26 2009/07/24 17:22:37 jsg Exp $ */ /* $NetBSD: athvar.h,v 1.10 2004/08/10 01:03:53 dyoung Exp $ */ /*- @@ -41,6 +41,8 @@ #ifndef _DEV_ATH_ATHVAR_H #define _DEV_ATH_ATHVAR_H +#ifdef _KERNEL + #include <net80211/ieee80211_radiotap.h> #include <dev/ic/ar5xxx.h> @@ -119,8 +121,6 @@ struct ath_stats { u_int32_t ast_rate_drop; /* rate control dropped xmit rate */ }; -#define SIOCGATHSTATS _IOWR('i', 137, struct ifreq) - /* * Radio capture format. */ @@ -557,4 +557,8 @@ int ath_enable(struct ath_softc *); #define ath_hal_proc_tx_desc(_ah, _ds) \ ((*(_ah)->ah_proc_tx_desc)((_ah), (_ds))) +#endif /* _KERNEL */ + +#define SIOCGATHSTATS _IOWR('i', 137, struct ifreq) + #endif /* _DEV_ATH_ATHVAR_H */ -- cgit v1.2.3