summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2009-07-24 17:22:38 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2009-07-24 17:22:38 +0000
commit59ba8d73767c5e3d9a65f31d97432b6de9773311 (patch)
tree62cec5d371c158433d508b9bdad26bd80745c9b6 /sys
parentbc6790bd9c519c485eb3300b9a3794f320c49ba9 (diff)
wrap the kernel specific parts in an _KERNEL ifdef.
ok reyk@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/athvar.h10
1 files 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 */