blob: 71255d44651fbc67b40b448f5e33c908215c8bf4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
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 <linux/fs.h>.
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 <unistd.h>
#include <utime.h>
+#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"
|