From: Eric Biggers Date: Sat, 20 Apr 2024 05:21:52 +0000 (-0700) Subject: mount_image.c: add fallback definitions of RENAME_* constants X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain 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 --- 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