RE: Compiling iproute2(w/HTB patch) for 2.5.51

Mikael Starvik (mikael.starvik@axis.com)
Mon, 16 Dec 2002 07:26:55 +0100


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)?

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