lkml.org 
[lkml]   [1999]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: version.h in 2.2.10
Date
In article <cistron.199906211546.RAA02724@wsdw05.win.tue.nl>,
Guest section DW <dwguest@win.tue.nl> wrote:
> From: miquels@cistron.nl (Miquel van Smoorenburg)
>
> However, there still is one problem. Some applications that use kernel
> interfaces that aren't quite integrated into (g)libc yet sometimes
> use #include <linux/whatever.h>, like gated with Alexeys latest patches.
> If you compile those with -I/usr/src/linux-2.2.10, then a
> #include <net/route.h> will include the one from /usr/src/linux/include/net
> instead of /usr/include/net, and those are _very_ different .. the
> only way to solve this would be to rename the include/net directory
> in the kernel to something else. Say, linux-net or linux/net.
>
> I'd love to hear if someone had a workaround for this.
>
>Wouldn't compiling with -I/usr/include -I/usr/src/linux-2.2.10/include
>do what you want? (Take the glibc version if it exists, peek at the
>kernel sources otherwise.)

No, since /usr/include/{linux,asm} are there, they just don't match
with the current kernel. Hmm, perhaps glibc needs to move away from
/usr/include/{linux,asm}. After all, no application should include
linux/* or asm/* right ..

I want
-I/usr/src/linux-2.2.10/include --exclude /usr/src/linux-2.2.10/include/net ;)

Mike.
--
Make bzImage, not win.

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

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.426 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site