aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/driver_prism54.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-06-03 08:57:52 (GMT)
committerJouni Malinen <j@w1.fi>2008-06-03 08:57:52 (GMT)
commit957ed801e9261c051c2ca1bbc5a051ff38e11fde (patch)
tree9cfa70e6b7c44e7fb142d08c6c565f905b7c101c /hostapd/driver_prism54.c
parent7e1488494e0150ee7fdef83355266b5633c5c1b0 (diff)
downloadhostap-06-957ed801e9261c051c2ca1bbc5a051ff38e11fde.zip
hostap-06-957ed801e9261c051c2ca1bbc5a051ff38e11fde.tar.gz
hostap-06-957ed801e9261c051c2ca1bbc5a051ff38e11fde.tar.bz2
Fix USE_KERNEL_HEADERS build with compat-wireless
compat-wireless does not include linux/compiler.h to define __user, so define it in hostapd code before including linux/wireless.h.
Diffstat (limited to 'hostapd/driver_prism54.c')
-rw-r--r--hostapd/driver_prism54.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hostapd/driver_prism54.c b/hostapd/driver_prism54.c
index be16e44..f119875 100644
--- a/hostapd/driver_prism54.c
+++ b/hostapd/driver_prism54.c
@@ -19,6 +19,11 @@
#include <sys/select.h>
#ifdef USE_KERNEL_HEADERS
+/* compat-wireless does not include linux/compiler.h to define __user, so
+ * define it here */
+#ifndef __user
+#define __user
+#endif /* __user */
#include <asm/types.h>
#include <linux/if_packet.h>
#include <linux/if_ether.h> /* The L2 protocols */