Re: Does kernel use system stdarg.h?

Mikael Pettersson
2002-09-27T09:26:17Z

Denis Vlasenko writes:
> On 27 September 2002 06:26, Russell King wrote:
> > > There is no stdarg.h in kernel tree, should it be there?
> > > For now I just copied GCC one into linux/include...
> >
> > It must be the GCC one. If your GCC isn't finding it, then you've got a
> > broken GCC installation; "-iwithprefix include" tells GCC to look in its
> > private include directory for such things.
> >
> > You could try adding -v to CFLAGS to see where it is searching for
> > includes.
>
> Oh, I thought we don't depend on any system/GCC headers. :-(

GCC headers != glibc headers
GCC's headers are needed for stdarg and other stuff requiring compiler magic.