summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2025-09-20 07:58:14 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2025-09-20 07:58:14 +0200
commita3d56d059df62b4ad6eb5ddb9edd1bb59609397a (patch)
treec79bab89985e3986d5bda2a92144918794d73241
parent6d95aefc58a05b3cf92655603d5d0d2bc12a99fd (diff)
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 <thomas.petazzoni@bootlin.com>
-rw-r--r--libc/sysdeps/linux/common/bits/typesizes.h10
1 files changed, 10 insertions, 0 deletions
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 */