[klibc] [PATCH 13/16] Define types and values in sys/socket.h

maximilian attems max at baikonur.stro.at
Tue Mar 16 10:50:22 PDT 2010

On Tue, Mar 16, 2010 at 09:18:06AM -0700, Mike Waychison wrote:
> On 3/16/2010 4:29 AM, Louis Rilling wrote:
> >On 01/03/10 23:46 -0800, Mike Waychison wrote:
> >>It seems a lot of #defines and types in linux/socket.h are now hidden 
> >>behind
> >>__KERNEL__.  Include them in sys/socket.h for the time being.
> >>
> >>At the same time, pull in asm/socket.h and linux/uio.h as they aren't
> >>implicitly pulled in anymore.
> >
> >Unfortunately this prevents from building klibc with earlier kernels (e.g.
> >2.6.26 on debian Lenny).
> >
> >What's the status of supporting earlier kernels?
> Sorry, I haven't tested with older kernels.  I did expect older kernels 
> to break, but I didn't see any tests for kernel version in #ifdef 
> blocks, so I figured that klibc wasn't trying to track older kernels.

yes we don't want any ifdefed spagetti code.

klibc is meant to be merged in linux-2.6 and who knows with newstyle
devfs aka DEVTMPTS there is really not much missing.
you just need to compile module-init-tools against it
(considering embedded usage).

More information about the klibc mailing list