Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/common/lib/libc/sys



> Added Files:
>       src/common/lib/libc/sys: cpuset.c

There are multiple problems with building this in userland.

1) in sys/arch/i386/stand/boot/biosboot is built with -ffreestanding; 
however, <stdlib.h> has 
int      unsetenv(const char *) __RENAME(__unsetenv13);
and __RENAME isn't allowed in -ffreestanding.

2) if you hack around the problem by #define'ing __LIBC12_SOURCE__  or
similar, then you get the other problem:
/home/dogcow/work/nbsrc/sys/arch/i386/stand/boot/biosboot/../../../../../sys/lwp.h:82:
 error: field 'l_rtime' has incomplete type

Personally, I think it'd be better to avoid the grody hack in time.h that's
solely for avoiding hpcarm issues with ancient versions of the compiler, and
hack the hpcboot sources instead to have its own private emasculated copy
of sys/time.h if it really really needs it.



Home | Main Index | Thread Index | Old Index