summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sys/types.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/sys/types.h b/include/sys/types.h
index 087819b02..8c0b5dce3 100644
--- a/include/sys/types.h
+++ b/include/sys/types.h
@@ -163,7 +163,9 @@ typedef unsigned int uint;
typedef char int8_t;
typedef short int int16_t;
typedef int int32_t;
-# ifdef __GNUC__
+# if __WORDSIZE == 64
+typedef long int int64_t;
+# elif defined __GNUC__ || defined __ICC
__extension__ typedef long long int int64_t;
# endif
# endif
@@ -172,7 +174,9 @@ __extension__ typedef long long int int64_t;
typedef unsigned char u_int8_t;
typedef unsigned short int u_int16_t;
typedef unsigned int u_int32_t;
-# ifdef __GNUC__
+# if __WORDSIZE == 64
+typedef unsigned long int u_int64_t;
+# elif defined __GNUC__ || defined __ICC
__extension__ typedef unsigned long long int u_int64_t;
# endif