https://bugs.kde.org/show_bug.cgi?id=511548

            Bug ID: 511548
           Summary: getdents_filter no longer builds with musl
    Classification: Developer tools
           Product: valgrind
      Version First 3.26 GIT
       Reported In:
          Platform: NixOS
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 186435
  --> https://bugs.kde.org/attachment.cgi?id=186435&action=edit
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).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to