From a3d56d059df62b4ad6eb5ddb9edd1bb59609397a Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 20 Sep 2025 07:58:14 +0200 Subject: Add glibc internal macros for 64 Bit architectures To satisfy detection of LFS support add these glibc internal macros. Fixes f.e. libselinux compile. Reported-By: Thomas Petazzoni --- libc/sysdeps/linux/common/bits/typesizes.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libc/sysdeps/linux/common/bits/typesizes.h b/libc/sysdeps/linux/common/bits/typesizes.h index dcb2c3b0a..074758701 100644 --- a/libc/sysdeps/linux/common/bits/typesizes.h +++ b/libc/sysdeps/linux/common/bits/typesizes.h @@ -73,5 +73,15 @@ /* Number of descriptors that can fit in an `fd_set'. */ #define __FD_SETSIZE 1024 +#if __WORDSIZE == 64 +/* Tell the code that off_t and off64_t are actually the same type + for all ABI purposes, even if possibly expressed as different base types + for C type-checking purposes. */ +# define __OFF_T_MATCHES_OFF64_T 1 + +/* Same for ino_t and ino64_t. */ +# define __INO_T_MATCHES_INO64_T 1 + +#endif #endif /* bits/typesizes.h */ -- cgit v1.2.3