From 7f4285dcbbca12f73a873a67593fe61f0f15a82a Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sun, 5 May 2019 22:28:34 +0000 Subject: [PATCH] Introduce ARCH_TIMESIZE This is going to be used to implement new timespec parsers. * linux/arch_defs_.h [!ARCH_TIMESIZE] (ARCH_TIMESIZE): Define to SIZEOF_LONG. * linux/x32/arch_defs_.h (ARCH_TIMESIZE): Define to 8. --- linux/arch_defs_.h | 4 ++++ linux/x32/arch_defs_.h | 1 + 2 files changed, 5 insertions(+) diff --git a/linux/arch_defs_.h b/linux/arch_defs_.h index 69d6dbb0..5baf3f91 100644 --- a/linux/arch_defs_.h +++ b/linux/arch_defs_.h @@ -7,6 +7,10 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ +#ifndef ARCH_TIMESIZE +# define ARCH_TIMESIZE SIZEOF_LONG +#endif + #ifndef HAVE_ARCH_GETRVAL2 # define HAVE_ARCH_GETRVAL2 0 #endif diff --git a/linux/x32/arch_defs_.h b/linux/x32/arch_defs_.h index 18321f51..91e39eea 100644 --- a/linux/x32/arch_defs_.h +++ b/linux/x32/arch_defs_.h @@ -5,6 +5,7 @@ * SPDX-License-Identifier: LGPL-2.1-or-later */ +#define ARCH_TIMESIZE 8 #define HAVE_ARCH_OLD_MMAP 1 #define HAVE_ARCH_OLD_SELECT 1 #define HAVE_ARCH_UID16_SYSCALLS 1 -- 2.40.0