From e1a95c6cb545af2666414d52d6b5d676e4993a66 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Fri, 19 Apr 2024 22:21:52 -0700 Subject: [PATCH] mount_image.c: add fallback definitions of RENAME_* constants This is needed on older distros. Reported at https://wimlib.net/forums/viewtopic.php?t=743 --- src/mount_image.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mount_image.c b/src/mount_image.c index 4702d60d..36bf1b97 100644 --- a/src/mount_image.c +++ b/src/mount_image.c @@ -74,6 +74,13 @@ # define ENOATTR ENODATA #endif +#ifndef RENAME_NOREPLACE +# define RENAME_NOREPLACE (1 << 0) +#endif +#ifndef RENAME_EXCHANGE +# define RENAME_EXCHANGE (1 << 1) +#endif + #define WIMFS_MQUEUE_NAME_LEN 32 #define WIMLIB_UNMOUNT_FLAG_SEND_PROGRESS 0x80000000 -- 2.43.0