authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-10-13 19:32:54-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-10-13 19:32:54-07:00
log701ef1f8c2afb9b9d05b40f26c7b5d3fc10557a2
treefff1ff7bb745883a19e71aa5854248fd3d36dc8e
parent0b16500604ac6daa8c0dbf156b3fd132b0651e34

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
......@@ -29,18 +29,6 @@
2929#include <stat_t64_cp.h>
3030#include <sys/sysmacros.h>
3131
32#if __TIMESIZE == 64 \
33 && (__WORDSIZE == 32 \
34 && (!defined __SYSCALL_WORDSIZE || __SYSCALL_WORDSIZE == 32))
35/* Sanity check to avoid newer 32-bit ABI to support non-LFS calls. */
36_Static_assert (sizeof (__off_t) == sizeof (__off64_t),
37 "__blkcnt_t and __blkcnt64_t must match");
38_Static_assert (sizeof (__ino_t) == sizeof (__ino64_t),
39 "__blkcnt_t and __blkcnt64_t must match");
40_Static_assert (sizeof (__blkcnt_t) == sizeof (__blkcnt64_t),
41 "__blkcnt_t and __blkcnt64_t must match");
42#endif
43
4432#if (__WORDSIZE == 32 \
4533 && (!defined __SYSCALL_WORDSIZE || __SYSCALL_WORDSIZE == 32)) \
4634 || defined STAT_HAS_TIME32 \