summaryrefslogtreecommitdiff
path: root/amd64/include
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2020-03-24 14:45:15 -0700
committerOri Bernstein <ori@eigenstate.org>2020-03-24 14:45:15 -0700
commit2f67e21393c25943f25e116fa6912b7d92dbca4e (patch)
treefe61561af5d675c13335cef536eaf75731e26d0a /amd64/include
parent0e1fec841e7cc9291110284a946d1d0489fc7713 (diff)
downloadplan9front-2f67e21393c25943f25e116fa6912b7d92dbca4e.tar.xz
turn ptrdiff_t into a 64 bit type
while technically a 32 bit ptrdiff_t is in spec on systems with 64 bit ponters as long as we guarantee that individual objects are small enough, this can confuse legitimate code, so lets fix this.
Diffstat (limited to 'amd64/include')
-rw-r--r--amd64/include/ape/stddef.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/amd64/include/ape/stddef.h b/amd64/include/ape/stddef.h
new file mode 100644
index 000000000..2a217ba90
--- /dev/null
+++ b/amd64/include/ape/stddef.h
@@ -0,0 +1,7 @@
+#ifndef __STDDEF_ARCH_H
+#define __STDDEF_ARCH_H
+
+typedef long long _ptrdiff_t;
+#include "/sys/include/ape/stddef.h"
+
+#endif /* __STDDEF_ARCH_H */