diff options
Diffstat (limited to 'chromium/patches/008-fstatat64.patch')
| -rw-r--r-- | chromium/patches/008-fstatat64.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chromium/patches/008-fstatat64.patch b/chromium/patches/008-fstatat64.patch new file mode 100644 index 0000000..1627ffa --- /dev/null +++ b/chromium/patches/008-fstatat64.patch | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | fstatat64 is macrod to fstatat in sys/stat.h in musl- but then that fstatat is | ||
| 2 | used in the _syscall4 macro mapping to __NR_$name, and __NR_fstatat is not | ||
| 3 | defined anywhere here, as it wants the 64 name. | ||
| 4 | |||
| 5 | so, just let it keep the name with an undef of the stat.h macro, then the macro | ||
| 6 | expansion 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 | ||