projects/aports·blob master · refs

17 lines · 695 B

1fstatat64 is macrod to fstatat in sys/stat.h in musl- but then that fstatat is
2used in the _syscall4 macro mapping to __NR_$name, and __NR_fstatat is not
3defined anywhere here, as it wants the 64 name.
4
5so, just let it keep the name with an undef of the stat.h macro, then the macro
6expansion below evaluates correctly.
7--- a/third_party/lss/linux_syscall_support.h
8+++ b/third_party/lss/linux_syscall_support.h
9@@ -4947,7 +4947,8 @@
10 # endif
11 #endif
12 #if defined(__NR_fstatat64)
13+ #undef fstatat64
14 LSS_INLINE _syscall4(int, fstatat64, int, d,
15 const char *, p,
16 struct kernel_stat64 *, b, int, f)
17 #endif