lkml.org 
[lkml]   [2000]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectProblem with include/linux/fs.h vs. glibc
Date
Hi !

Sorry if this have already been the cause of a flamewar on the list, but...

I need to compile an app with the 2.4 kernel headers & glibc (our stable
glibc on PPC is based on 2.1.3). However, the compiler is barking on a
change done in 2.4 version of include/linux/fs.h:

The 2.2.x version didn't include <linux/string.h> and all was fine.

The 2.4.x version does include <linux/string.h> and this is causing gcc
to bark because of conflicts with glibc headers (glibc seems to #define
some of the prototypes defined in linux/string.h, causing various parse
errors).

So what is the solution ?

- removing the #include <linux/string.h> from linux/fs.h ?
- moving it in a #ifdef __KERNEL__ part of the file ?
- protect linux/string.h itself with #ifdef __KERNEL__ ?
- fix glibc ? (how ? I mean, it's legal to include linux/fs.h from userland,
but linux/string.h is obviously not meant to be exported out of the kernel)

Regards,
Ben.

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

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.069 / U:1.072 seconds]
©2003-2014 Jasper Spaans. Advertise on this site