authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-10-13 19:31:57-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-06-05 22:43:53-07:00
log82ec333f277535bb08d8a3856c8ab924f098fc6d
treeef7e1637c46b45dc444f783ae64fab2a063a625c
parent090025c4576f8c58cf8e2040086b1804925265c2

glibc patch: don't check __LIBC macro

This is the only place in all of glibc that this macro is referenced. What is it doing? Only preventing fstatat.c from knowing the type definition of `__time64_t`, apparently. Fixes compilation of fstatat.c on 32-bit x86.

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

lib/libc/glibc/posix/bits/types.h+1-1
......@@ -217,7 +217,7 @@ typedef int __sig_atomic_t;
217217/* Seconds since the Epoch, visible to user code when time_t is too
218218 narrow only for consistency with the old way of widening too-narrow
219219 types. User code should never use __time64_t. */
220#if __TIMESIZE == 64 && defined __LIBC
220#if __TIMESIZE == 64
221221# define __time64_t __time_t
222222#elif __TIMESIZE != 64
223223__STD_TYPE __TIME64_T_TYPE __time64_t;