I have the exact same problem with sysklogd and I found
that linux/module.h has a lot of new includes in 2.5
that indirectly brings in a lot of .h files that
shouldn't be included from userspace.
Because of this you get both the compilers definition
of FD_SET etc and the kernels version. I have not yet
had the time to find out how to solve this but the
solution is either to remove some includes or to add
more #ifdef __KERNEL__.
Question 1: Should it at all be possible to compile
applications with 2.5.x headers?
Question 2: Is there any chance that we can remove
or #ifdef some includes in module.h (e.g. sched.h)?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon Dec 23 2002 - 22:00:12 EST