Subject: re: Massive namespace pollution
To: David Laight <>
From: matthew green <>
List: tech-toolchain
Date: 08/22/2003 09:58:56
   Investigating why bochs fails to compile shows the following include trail:
   In file included from /usr/include/machine/specialreg.h:3,
                    from /usr/include/machine/cpufunc.h:49,
                    from /usr/include/x86/lock.h:50,
                    from /usr/include/machine/lock.h:3,
                    from /usr/include/pthread_types.h:42,
                    from /usr/include/sys/types.h:361,
                    from /usr/include/stdlib.h:41,
   This is pulling far too many symbols in unreserved namespaces.
   The actual fail is on #define CPUID() but there is far too much
   unexpected stuff being defined.

the change for pthread_types.h to include <machine/lock.h> or whatever
it was caused some other lossage for me...  i did spend some time adding
#ifdef _KERNEL to some header files, but never really finished it...