ソースを参照

Break dependancy of bits/types.h on the asm/posix_types.h kernel
header, which is not directly usable for many architectures.
-Erik

Eric Andersen 23 年 前
コミット
6d8239f208

+ 1 - 9
libc/sysdeps/linux/alpha/bits/types.h

@@ -27,15 +27,7 @@
 
 #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;

+ 1 - 9
libc/sysdeps/linux/mips/bits/types.h

@@ -27,15 +27,7 @@
 
 #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;

+ 1 - 9
libc/sysdeps/linux/powerpc/bits/types.h

@@ -27,15 +27,7 @@
 
 #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;

+ 1 - 9
libc/sysdeps/linux/sparc/bits/types.h

@@ -28,15 +28,7 @@
 #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;