This patch should be removed once the following musl commit lands: https://git.musl-libc.org/cgit/musl/commit\ /include/stdio.h?id=05ce67fea99ca09cd4b6625cff7aec9cc222dd5a These macros are also exposed via . diff -ur a/src/mount_image.c b/src/mount_image.c --- a/src/mount_image.c 2024-12-11 21:13:37.806412788 -0600 +++ b/src/mount_image.c 2024-12-11 21:18:32.528640110 -0600 @@ -53,6 +53,18 @@ #include #include +#if defined(_GNU_SOURCE) +#ifndef RENAME_NOREPLACE +#define RENAME_NOREPLACE (1 << 0) +#endif +#ifndef RENAME_EXCHANGE +#define RENAME_EXCHANGE (1 << 1) +#endif +#ifndef RENAME_WHITEOUT +#define RENAME_WHITEOUT (1 << 2) +#endif +#endif + #include "wimlib/blob_table.h" #include "wimlib/dentry.h" #include "wimlib/encoding.h"