I am trying to include ioctl.h
on my Gumstix Linux in order to use the on-board ADC.
In turn, ioctl.h
includes asm/ioctls.h
which is missing on my machine.
In fact, the entire /usr/asm
direct开发者_开发百科ory is missing. Does anybody know how I am supposed to add/install it and why it is missing?
I had this same issue. I created a symbolic link for this directory, as well as several others (sorry I cannot be more specific as this was at a previous employer and I don't have it with me.)
Make sure you have installed the kernel headers:
opkg install task-native-sdk
Then create symbolic links:
ln -s /usr/asm /usr/src/linux-3.0.0/include/asm/
(again, going on memory...)
It depends on architecture. For example for x86, the file
/arch/x86/include/asm/ioctl.h
includes
include/asm-generic/ioctl.h
that contains the relevant information
精彩评论