diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-08-24 01:07:33 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-08-24 01:07:33 +0000 |
commit | 6d8239f2086f689ac20607af40c78b17acab7018 (patch) | |
tree | 1d0849fce1ff4c175960a87cc2a175842335e6b8 | |
parent | 20d498e06a8f941c435ce06df9e2e9c1b061e0c4 (diff) |
Break dependancy of bits/types.h on the asm/posix_types.h kernel
header, which is not directly usable for many architectures.
-Erik
-rw-r--r-- | libc/sysdeps/linux/alpha/bits/types.h | 10 | ||||
-rw-r--r-- | libc/sysdeps/linux/mips/bits/types.h | 10 | ||||
-rw-r--r-- | libc/sysdeps/linux/powerpc/bits/types.h | 10 | ||||
-rw-r--r-- | libc/sysdeps/linux/sparc/bits/types.h | 10 |
4 files changed, 4 insertions, 36 deletions
diff --git a/libc/sysdeps/linux/alpha/bits/types.h b/libc/sysdeps/linux/alpha/bits/types.h index f4ddef749..c5e98c5a0 100644 --- a/libc/sysdeps/linux/alpha/bits/types.h +++ b/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; diff --git a/libc/sysdeps/linux/mips/bits/types.h b/libc/sysdeps/linux/mips/bits/types.h index a7eed7768..d879194ce 100644 --- a/libc/sysdeps/linux/mips/bits/types.h +++ b/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; diff --git a/libc/sysdeps/linux/powerpc/bits/types.h b/libc/sysdeps/linux/powerpc/bits/types.h index 99c882cfc..72ed269ff 100644 --- a/libc/sysdeps/linux/powerpc/bits/types.h +++ b/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; diff --git a/libc/sysdeps/linux/sparc/bits/types.h b/libc/sysdeps/linux/sparc/bits/types.h index aa62b0e77..dcddd8e6a 100644 --- a/libc/sysdeps/linux/sparc/bits/types.h +++ b/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; |