Fix compilation with 4.x kernel headers
commit839bae66a376631ee7d5b1f5b2f5b4094c519ea8
authorDmitry Chestnykh <dm.chestnykh@gmail.com>
Sat, 20 Jul 2024 14:23:45 +0000 (20 17:23 +0300)
committerWaldemar Brodkorb <wbx@openadk.org>
Sun, 21 Jul 2024 07:09:19 +0000 (21 09:09 +0200)
tree3441b2d2c5c70d2180d24855272cd826e1108c09
parent1d8ade50e8c5d9727a1f5a8d5af2f5d643a812d3
Fix compilation with 4.x kernel headers

- Fallback to __NR_stat syscall in ld.so if we use 4.x kernel headers.
4.x kernel doesn't support 64-bit time so we can use old syscall
- Add preprocessor conditions to have fstat64 and fstatat64 in libc
with old kernel headers

Signed-off-by: Dmitry Chestnykh <dm.chestnykh@gmail.com>
ldso/include/dl-syscall.h
libc/sysdeps/linux/common/fstat64.c
libc/sysdeps/linux/common/fstatat64.c