OSDN Git Service

Break dependancy of bits/types.h on the asm/posix_types.h kernel
authorEric Andersen <andersen@codepoet.org>
Sat, 24 Aug 2002 01:07:33 +0000 (01:07 -0000)
committerEric Andersen <andersen@codepoet.org>
Sat, 24 Aug 2002 01:07:33 +0000 (01:07 -0000)
header, which is not directly usable for many architectures.
 -Erik

libc/sysdeps/linux/alpha/bits/types.h
libc/sysdeps/linux/mips/bits/types.h
libc/sysdeps/linux/powerpc/bits/types.h
libc/sysdeps/linux/sparc/bits/types.h

index f4ddef7..c5e98c5 100644 (file)
 
 #define __need_size_t
 #include <stddef.h>
-
-/* Sigh.  We need to carefully wrap this one... */
-#ifndef __GLIBC__
-#define __GLIBC__ 2
-#include <asm/posix_types.h>
-#undef __GLIBC__
-#else
-#include <asm/posix_types.h>
-#endif
+#include <bits/kernel_types.h>
 
 /* Convenience types.  */
 typedef unsigned char __u_char;
index a7eed77..d879194 100644 (file)
 
 #define __need_size_t
 #include <stddef.h>
-
-/* Sigh.  We need to carefully wrap this one... */
-#ifndef __GLIBC__
-#define __GLIBC__ 2
-#include <asm/posix_types.h>
-#undef __GLIBC__
-#else
-#include <asm/posix_types.h>
-#endif
+#include <bits/kernel_types.h>
 
 /* Convenience types.  */
 typedef unsigned char __u_char;
index 99c882c..72ed269 100644 (file)
 
 #define __need_size_t
 #include <stddef.h>
-
-/* Sigh.  We need to carefully wrap this one... */
-#ifndef __GLIBC__
-#define __GLIBC__ 2
-#include <asm/posix_types.h>
-#undef __GLIBC__
-#else
-#include <asm/posix_types.h>
-#endif
+#include <bits/kernel_types.h>
 
 /* Convenience types.  */
 typedef unsigned char __u_char;
index aa62b0e..dcddd8e 100644 (file)
 #define __need_size_t
 #include <stddef.h>
 #include <bits/wordsize.h>
-
-/* Sigh.  We need to carefully wrap this one... */
-#ifndef __GLIBC__
-#define __GLIBC__ 2
-#include <asm/posix_types.h>
-#undef __GLIBC__
-#else
-#include <asm/posix_types.h>
-#endif
+#include <bits/kernel_types.h>
 
 /* Convenience types.  */
 typedef unsigned char __u_char;