From 64642dbccf6ffebc11a5d9942bf532db8fc63937 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 5 Aug 2020 16:47:28 +0200 Subject: aarch64: adjust bits/typesizes.h --- sysdeps/unix/sysv/linux/aarch64/bits/typesizes.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/typesizes.h b/sysdeps/unix/sysv/linux/aarch64/bits/typesizes.h index e3975c7..a38054a 100644 --- a/sysdeps/unix/sysv/linux/aarch64/bits/typesizes.h +++ b/sysdeps/unix/sysv/linux/aarch64/bits/typesizes.h @@ -47,9 +47,18 @@ #define __FSWORD_T_TYPE __SWORD_TYPE #define __ID_T_TYPE __U32_TYPE #define __CLOCK_T_TYPE __SLONGWORD_TYPE -#define __TIME_T_TYPE __SLONGWORD_TYPE +#if __TIMESIZE == 64 && __WORDSIZE == 32 +# define __TIME_T_TYPE __SQUAD_TYPE +#else +# define __TIME_T_TYPE __SLONGWORD_TYPE +#endif #define __USECONDS_T_TYPE __U32_TYPE -#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE +#if __TIMESIZE == 64 && __WORDSIZE == 32 +# define __SUSECONDS_T_TYPE __SQUAD_TYPE +#else +# define __SUSECONDS_T_TYPE __SLONGWORD_TYPE +#endif +#define __SUSECONDS64_T_TYPE __SQUAD_TYPE #define __DADDR_T_TYPE __S32_TYPE #define __KEY_T_TYPE __S32_TYPE #define __CLOCKID_T_TYPE __S32_TYPE @@ -82,6 +91,9 @@ /* And for __fsbilcnt_t and __fsbilcnt64_t. */ #define __FSFILCNT_T_TYPE_MATCHES_FSFILCNT64_T_TYPE 1 +/* And for getitimer, setitimer and rusage */ +#define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 (__WORDSIZE == 64) + /* Number of descriptors that can fit in an `fd_set'. */ #define __FD_SETSIZE 1024 -- cgit v1.1