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 */