zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 701ef1f8c2afb9b9d05b40f26c7b5d3fc10557a2 (tree)
parent 0b16500604ac6daa8c0dbf156b3fd132b0651e34
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Fri, 13 Oct 2023 19:32:54 -0700

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.

Diffstat:
Mlib/libc/glibc/sysdeps/unix/sysv/linux/fstatat64.c | 12------------
1 file changed, 0 insertions(+), 12 deletions(-)

diff --git a/lib/libc/glibc/sysdeps/unix/sysv/linux/fstatat64.c b/lib/libc/glibc/sysdeps/unix/sysv/linux/fstatat64.c @@ -29,18 +29,6 @@ #include <stat_t64_cp.h> #include <sys/sysmacros.h> -#if __TIMESIZE == 64 \ - && (__WORDSIZE == 32 \ - && (!defined __SYSCALL_WORDSIZE || __SYSCALL_WORDSIZE == 32)) -/* Sanity check to avoid newer 32-bit ABI to support non-LFS calls. */ -_Static_assert (sizeof (__off_t) == sizeof (__off64_t), - "__blkcnt_t and __blkcnt64_t must match"); -_Static_assert (sizeof (__ino_t) == sizeof (__ino64_t), - "__blkcnt_t and __blkcnt64_t must match"); -_Static_assert (sizeof (__blkcnt_t) == sizeof (__blkcnt64_t), - "__blkcnt_t and __blkcnt64_t must match"); -#endif - #if (__WORDSIZE == 32 \ && (!defined __SYSCALL_WORDSIZE || __SYSCALL_WORDSIZE == 32)) \ || defined STAT_HAS_TIME32 \