From 957ed801e9261c051c2ca1bbc5a051ff38e11fde Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 3 Jun 2008 11:57:52 +0300 Subject: [PATCH] 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. --- hostapd/driver_hostap.c | 5 +++++ hostapd/driver_prism54.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/hostapd/driver_hostap.c b/hostapd/driver_hostap.c index c97f2ecab..013e63116 100644 --- a/hostapd/driver_hostap.c +++ b/hostapd/driver_hostap.c @@ -16,6 +16,11 @@ #include #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 #include #include /* The L2 protocols */ diff --git a/hostapd/driver_prism54.c b/hostapd/driver_prism54.c index be16e44af..f11987564 100644 --- a/hostapd/driver_prism54.c +++ b/hostapd/driver_prism54.c @@ -19,6 +19,11 @@ #include #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 #include #include /* The L2 protocols */