authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-06-05 18:07:54-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-06-05 22:43:53-07:00
logfd8b50ca5caffb099686a7d8de5941ec339d43ca
treedfa058b037a8c3b6ed780c7a378012f801197c0c
parent82ec333f277535bb08d8a3856c8ab924f098fc6d

glibc patch: remove some static asserts from fstatat

These are tripping on 32-bit x86 but are intended to prevent glibc itself from being built with a bad configuration. Zig is only using this file to create libc_nonshared.a, so it's not relevant.

1 files changed, 0 insertions(+), 12 deletions(-)

lib/libc/glibc/sysdeps/unix/sysv/linux/fstatat64.c-12
...@@ -27,18 +27,6 @@...@@ -27,18 +27,6 @@
27#include <sys/sysmacros.h>27#include <sys/sysmacros.h>
28#include <internal-stat.h>28#include <internal-stat.h>
2929
30#if __TIMESIZE == 64 \
31 && (__WORDSIZE == 32 \
32 && (!defined __SYSCALL_WORDSIZE || __SYSCALL_WORDSIZE == 32))
33/* Sanity check to avoid newer 32-bit ABI to support non-LFS calls. */
34_Static_assert (sizeof (__off_t) == sizeof (__off64_t),
35 "__blkcnt_t and __blkcnt64_t must match");
36_Static_assert (sizeof (__ino_t) == sizeof (__ino64_t),
37 "__blkcnt_t and __blkcnt64_t must match");
38_Static_assert (sizeof (__blkcnt_t) == sizeof (__blkcnt64_t),
39 "__blkcnt_t and __blkcnt64_t must match");
40#endif
41
42#if FSTATAT_USE_STATX30#if FSTATAT_USE_STATX
4331
44static inline int32static inline int