Remove <sys/_types.h>.
Bug: 12213562
Change-Id: I0d10664f9da60739bdbad0408be0dd61eea3c1fe
diff --git a/libc/include/stdint.h b/libc/include/stdint.h
index be49485..0d65ff8 100644
--- a/libc/include/stdint.h
+++ b/libc/include/stdint.h
@@ -30,7 +30,28 @@
#define _STDINT_H
#include <stddef.h>
-#include <sys/_types.h>
+
+typedef __signed char __int8_t;
+typedef unsigned char __uint8_t;
+typedef short __int16_t;
+typedef unsigned short __uint16_t;
+typedef int __int32_t;
+typedef unsigned int __uint32_t;
+#if __LP64__
+typedef long __int64_t;
+typedef unsigned long __uint64_t;
+#else
+typedef long long __int64_t;
+typedef unsigned long long __uint64_t;
+#endif
+
+#if __LP64__
+typedef long __intptr_t;
+typedef unsigned long __uintptr_t;
+#else
+typedef int __intptr_t;
+typedef unsigned int __uintptr_t;
+#endif
typedef __int8_t int8_t;
typedef __uint8_t uint8_t;
@@ -44,6 +65,9 @@
typedef __int64_t int64_t;
typedef __uint64_t uint64_t;
+typedef __intptr_t intptr_t;
+typedef __uintptr_t uintptr_t;
+
typedef int8_t int_least8_t;
typedef int8_t int_fast8_t;
@@ -68,16 +92,8 @@
typedef uint64_t uint_least64_t;
typedef uint64_t uint_fast64_t;
-#ifdef __LP64__
-typedef long intptr_t;
-typedef unsigned long uintptr_t;
-#else
-typedef int intptr_t;
-typedef unsigned int uintptr_t;
-#endif
-
-typedef uint64_t uintmax_t;
-typedef int64_t intmax_t;
+typedef uint64_t uintmax_t;
+typedef int64_t intmax_t;
/* Keep the kernel from trying to define these types... */
#define __BIT_TYPES_DEFINED__