summaryrefslogtreecommitdiff
path: root/hack/asm-generic/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'hack/asm-generic/types.h')
-rw-r--r--hack/asm-generic/types.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/hack/asm-generic/types.h b/hack/asm-generic/types.h
new file mode 100644
index 0000000..ae07283
--- /dev/null
+++ b/hack/asm-generic/types.h
@@ -0,0 +1,9 @@
+/* Override Linux' (4.16.1) <asm-generic/types.h> to agree with GNU
+ * libc's (2.27) <bits/types.h> so that we can use Linux' __u64 and
+ * __s64 with libc's PRIu64 and PRUi64. */
+
+#if __WORDSIZE == 64
+# include <asm-generic/int-l64.h>
+#else
+# include <asm-generic/int-ll64.h>
+#endif