diff options
Diffstat (limited to 'libc/sysdeps/linux/powerpc/bits')
-rw-r--r-- | libc/sysdeps/linux/powerpc/bits/types.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/powerpc/bits/types.h b/libc/sysdeps/linux/powerpc/bits/types.h index 74358469b..144ffb32a 100644 --- a/libc/sysdeps/linux/powerpc/bits/types.h +++ b/libc/sysdeps/linux/powerpc/bits/types.h @@ -28,6 +28,15 @@ #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 + /* Convenience types. */ typedef unsigned char __u_char; typedef unsigned short __u_short; @@ -60,9 +69,9 @@ typedef __quad_t *__qaddr_t; /* These types are modified from glibc to be * more compatible with the Linux kernel. */ -typedef __u_int __dev_t; /* Type of device numbers. */ -typedef __u_int __uid_t; /* Type of user identifications. */ -typedef __u_int __gid_t; /* Type of group identifications. */ +typedef __kernel_dev_t __dev_t; /* Type of device numbers. */ +typedef __kernel_uid_t __uid_t; /* Type of user identifications. */ +typedef __kernel_gid_t __gid_t; /* Type of group identifications. */ typedef __u_int __ino_t; /* Type of file serial numbers. */ typedef __u_int __mode_t; /* Type of file attribute bitmasks. */ typedef __u_short __nlink_t; /* Type of file link counts. */ |