[PATCH v7 06/14] linux/arch_defs_.h: Add a HAVE_ARCH_TIMESPEC32 define
Alistair Francis
alistair.francis at wdc.com
Fri Apr 17 16:47:16 UTC 2020
Signed-off-by: Alistair Francis <alistair.francis at wdc.com>
---
linux/arch_defs_.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/linux/arch_defs_.h b/linux/arch_defs_.h
index 5baf3f91..2124ae83 100644
--- a/linux/arch_defs_.h
+++ b/linux/arch_defs_.h
@@ -66,3 +66,15 @@
#ifndef HAVE_ARCH_OLD_TIME64_SYSCALLS
# define HAVE_ARCH_OLD_TIME64_SYSCALLS (SIZEOF_LONG == 8)
#endif
+
+#ifndef MIN_KLONGSIZE
+# if SUPPORTED_PERSONALITIES > 1
+# define MIN_KLONGSIZE 4
+# else
+# define MIN_KLONGSIZE SIZEOF_KERNEL_LONG_T
+# endif
+#endif
+
+#ifndef HAVE_ARCH_TIMESPEC32
+# define HAVE_ARCH_TIMESPEC32 (MIN_KLONGSIZE == 4)
+#endif
--
2.26.0
More information about the Strace-devel
mailing list