build error with compat-wireless-2008-05-30 headers

Pavel Roskin proski
Fri May 30 13:04:29 PDT 2008

On Fri, 2008-05-30 at 21:49 +0200, Hauke Mehrtens wrote:
> I get a build error, when using the compat-wireless-2008-05-30 headers.
> cc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I../src -I../src/crypto
> -I../src/utils -I../src/common -DUSE_KERNEL_HEADERS
> -I/home/hauke/compat-wireless/compat-wireless-2008-05-30/include
> -DCONFIG_IPV6   -c -o driver_hostap.o driver_hostap.c
> In file included from driver_hostap.c:23:
> /home/hauke/compat-wireless/compat-wireless-2008-05-30/include/linux/wireless.h:673:

The thing it doesn't like is "__user".

I guess you enabled USE_KERNEL_HEADERS in the hostapd Makefile.  I think
the fix belongs to hostapd.  If it uses kernel includes, it should
include a kernel compatibility include first, which should define __user
among other things.

Pavel Roskin

More information about the Hostap mailing list