Re: Compile error including asm/uaccess.h

Ahmed Masud (masud@googgun.com)
Wed, 14 May 2003 10:35:54 -0400 (EDT)


>
> #include <asm/uaccess.h>
>
> int main (){
> return 0;
> }

Hi stephen:

<asm/uaccess.h> or for that matter any other kernel related header do
not contain references to other headers they may need, and this is done on
purpose for various reasons least of which is creating faster dependencies
information.

In any event, if your purpose is to use any information usefully from
these, then you should look into an other file in the kernel code that
includes this file and see the headers that are include before it.

Also have a look at the defines that go with compiling this file.

If you are simply verifying the existence of this file in an autoconf
configure type script (which may be the case looking at your example
code). Then you should write your own test of somesort rather than
resorting to AC_CONFIG_HEADER.

Cheers,

Ahmed.

For more info have a look at www.kernelnewbies.org

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/