From: Jouni Malinen Date: Tue, 3 Jun 2008 08:57:52 +0000 (+0300) Subject: Fix USE_KERNEL_HEADERS build with compat-wireless X-Git-Tag: hostap_0_6_4~51 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=957ed801e9261c051c2ca1bbc5a051ff38e11fde;hp=7e1488494e0150ee7fdef83355266b5633c5c1b0;p=libeap.git 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. --- diff --git a/hostapd/driver_hostap.c b/hostapd/driver_hostap.c index c97f2ec..013e631 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 be16e44..f119875 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 */