Index: libc/arch/amd64/include/types.h
===================================================================
--- libc/arch/amd64/include/types.h	(revision 4e2cf8b9b24f9ec1cf431297792cafee28300fc9)
+++ libc/arch/amd64/include/types.h	(revision 79522a7cc9403eed9cdfa19ba9daf70b58a097b5)
@@ -34,3 +34,13 @@
 typedef signed int ssize_t;
 
+typedef char int8_t;
+typedef short int int16_t;
+typedef int int32_t;
+typedef long long int int64_t;
+
+typedef unsigned char uint8_t;
+typedef unsigned short int uint16_t;
+typedef unsigned int uint32_t;
+typedef unsigned long long int uint64_t;
+
 #endif
Index: libc/arch/ia64/include/types.h
===================================================================
--- libc/arch/ia64/include/types.h	(revision 4e2cf8b9b24f9ec1cf431297792cafee28300fc9)
+++ libc/arch/ia64/include/types.h	(revision 79522a7cc9403eed9cdfa19ba9daf70b58a097b5)
@@ -34,3 +34,13 @@
 typedef signed int ssize_t;
 
+typedef char int8_t;
+typedef short int int16_t;
+typedef int int32_t;
+typedef long int int64_t;
+
+typedef unsigned char uint8_t;
+typedef unsigned short int uint16_t;
+typedef unsigned int uint32_t;
+typedef unsigned long int uint64_t;
+
 #endif
Index: libc/arch/mips32/include/types.h
===================================================================
--- libc/arch/mips32/include/types.h	(revision 4e2cf8b9b24f9ec1cf431297792cafee28300fc9)
+++ libc/arch/mips32/include/types.h	(revision 79522a7cc9403eed9cdfa19ba9daf70b58a097b5)
@@ -34,3 +34,13 @@
 typedef signed int ssize_t;
 
+typedef char int8_t;
+typedef short int int16_t;
+typedef long int int32_t;
+typedef long long int int64_t;
+
+typedef unsigned char uint8_t;
+typedef unsigned short int uint16_t;
+typedef unsigned long int uint32_t;
+typedef unsigned long long int uint64_t;
+
 #endif
