On Thu, Jan 22, 2009 at 9:36 AM, Carmelo AMOROSO <[email protected]> wrote: > Folks, > looking at include/errno.h I've noted that the following line: > > #if defined _LIBC && ( defined IS_IN_libc || defined NOT_IN_libc ) > #include <bits/uClibc_errno.h> > #endif > > IIUC, we would wand to include uClibc_errno.h only if we are inside > uclibc/libc > > so, I imagine we should use > #if defined _LIBC && ( defined IS_IN_libc || ! defined NOT_IN_libc )
IIUC NOT_IN_libc is defined by libraries that we build along with libc which have access to libc sources when they are built but are not libc (e.g. librt ) and _LIBC is defined for libc code. Unless we want to bar these associated libraries from including bits/uClibc_errno.h the current check should be ok. > > is it right, or am I completely wrong ? > > Carmelo > _______________________________________________ > uClibc mailing list > [email protected] > http://lists.busybox.net/mailman/listinfo/uclibc > _______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
