[uClibc]alternate idea for handling duplicate symbol problems in kernel headers

Manuel Novoa III mnovoa3 at bellsouth.net
Fri Jan 19 04:32:45 UTC 2001


Erik,

Besides just defining __GLIBC__ to 2 in features.h, we could
1) conditionaly comment out things in uClibc headers based on kernel version.
or
2) build wrappers in uClibc/include/linux and uClibc/include/asm for the kernel
headers... something like

{header.h}
#ifdef __GLIBC__
#error  __GLIBC__  shouldn't be defined here
#else
#define __GLIBC__ 2
#include {real kernel header}
#undef __GLIBC__
#endif

Thoughts?

Manuel





More information about the uClibc mailing list