]> wimlib.net Git - wimlib/commitdiff
mount_image.c: add fallback definitions of RENAME_* constants master
authorEric Biggers <ebiggers3@gmail.com>
Sat, 20 Apr 2024 05:21:52 +0000 (22:21 -0700)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 20 Apr 2024 05:24:03 +0000 (22:24 -0700)
This is needed on older distros.

Reported at https://wimlib.net/forums/viewtopic.php?t=743

src/mount_image.c

index 4702d60d8d806d393dcc8b825bcc76cbcb557706..36bf1b97186882f6e74153cbd4fb40d9da57ae41 100644 (file)
 #  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