about summary refs log tree commit diff
path: root/include/sys/reg.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys/reg.h')
-rw-r--r--include/sys/reg.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sys/reg.h b/include/sys/reg.h
index b47452d0..0272e137 100644
--- a/include/sys/reg.h
+++ b/include/sys/reg.h
@@ -4,6 +4,15 @@
 #include <limits.h>
 #include <unistd.h>
 
+#include <bits/alltypes.h>
+
+#undef __WORDSIZE
+#if __LONG_MAX == 0x7fffffffL
+#define __WORDSIZE 32
+#else
+#define __WORDSIZE 64
+#endif
+
 #include <bits/reg.h>
 
 #endif