Imported Debian patch 5.1-8
[debian/gcpegg] / global.h
index d85b156c27b2e01b194e3fbf6658a44214c26f9a..09d20052ff5ab97fc6529d36f3ee1c5a911c7e91 100644 (file)
--- a/global.h
+++ b/global.h
 #include "byteorder.h"         /* Build byte-order independent version */
 
 /* Good for i386, but be careful... */
+#ifdef linux
+#include <sys/types.h>
+typedef __u8  byte;
+typedef __u8  uint8;
+typedef __u16 uint16;
+typedef __u32 uint32;
+typedef __s8  int8;
+typedef __s16 int16;
+typedef __s32 int32;
+#else
 typedef unsigned char byte;
 typedef unsigned char uint8;
 typedef unsigned short uint16;
@@ -39,6 +49,7 @@ typedef unsigned long uint32;
 typedef char int8;
 typedef short int16;
 typedef long int32;
+#endif /* linux */
 
 /* Some fixed assumptions:
    Trial type is always bitsum.