On Wed, Nov 01, H. Peter Anvin wrote:
> Thorsten Kukuk wrote:
> >
> > Hi,
> >
> > On Wed, Nov 01, [EMAIL PROTECTED] wrote:
> >
> > >
> > > Hi,
> > >
> > > I made two small modifications in order to get autofs-4.0.0pre9 work on
> > > my workstation.
> > >
> > > First, for compilation I needed to include <linux/limits.h> rather
> > > than <limits.h>.
> >
> > This patch is wrong. Never include a kernel header file into a
> > userland program. Please tell what the problem is and fix this.
> >
>
> This statement is wrong... unfortunately, this is not a realistic
> statement for kernel-using daemons.
No, it is right, even for kernel-using daemons. You have to copy
the relevant data you need from the kernel header file to a local
one. I think this is the only point where Linus and Uli Drepper
agree about.
Only if you have a kernel module you must use kernel header files
and no glibc header files.
Thorsten
--
Thorsten Kukuk http://www.suse.de/~kukuk/ [EMAIL PROTECTED]
SuSE GmbH Schanzaeckerstr. 10 90443 Nuernberg
Linux is like a Vorlon. It is incredibly powerful, gives terse,
cryptic answers and has a lot of things going on in the background.