Created attachment 186435 [details] Patch to fix the issue Since commit b2c27072b ("Deal with linux arches that don't have getdents, only getdents64"), building for musl fails due to ino64_t and off64_t being undefined. The *64_t types are transitional APIs for applications that do not yet fully support large files on 32-bit platforms, and musl no longer provides them. Since this is for a raw syscall anyway, it doesn't make sense to use libc-specific types here anyway, so in the attached patch I've changed this to match the definition of the struct used in the kernel (except there the kernel-specific u64 and s64 typedefs are used instead).
Created attachment 186451 [details] Patch to fix the issue (now including <stdint.h> for Glibc)
*** Bug 511978 has been marked as a duplicate of this bug. ***