diff -rN -p -u old-gnumach/include/sys/types.h new-gnumach-1/include/sys/types.h --- old-gnumach/include/sys/types.h 2008-07-18 11:26:49.000000000 -0400 +++ new-gnumach-1/include/sys/types.h 2008-07-18 11:26:50.000000000 -0400 @@ -33,6 +33,12 @@ typedef natural_t size_t; #endif +#define __P(protos) protos /* full-blown ANSI C */ +#define __CONCAT1(x,y) x ## y +#define __CONCAT(x,y) __CONCAT1(x,y) +#define __STRING(x) #x /* stringify without expanding x */ +#define __XSTRING(x) __STRING(x) /* expand x, then stringify */ + #ifndef _SSIZE_T #define _SSIZE_T typedef integer_t ssize_t; @@ -58,6 +64,20 @@ typedef unsigned int time_t; #define RAND_MAX 0x7fffffff +/* Posix types */ +typedef signed8_t int8_t; +typedef unsigned8_t uint8_t; +typedef unsigned8_t u_int8_t; +typedef signed16_t int16_t; +typedef unsigned16_t uint16_t; +typedef unsigned16_t u_int16_t; +typedef signed32_t int32_t; +typedef unsigned32_t uint32_t; +typedef unsigned32_t u_int32_t; +typedef signed64_t int64_t; +typedef unsigned64_t uint64_t; +typedef unsigned64_t u_int64_t; + /* Symbols not allowed by POSIX */ #ifndef _POSIX_SOURCE