diff options
Diffstat (limited to 'meta/recipes-extended/mdadm/files/0002-Create.c-include-linux-falloc.h-for-FALLOC_FL_ZERO_R.patch')
-rw-r--r-- | meta/recipes-extended/mdadm/files/0002-Create.c-include-linux-falloc.h-for-FALLOC_FL_ZERO_R.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-extended/mdadm/files/0002-Create.c-include-linux-falloc.h-for-FALLOC_FL_ZERO_R.patch b/meta/recipes-extended/mdadm/files/0002-Create.c-include-linux-falloc.h-for-FALLOC_FL_ZERO_R.patch new file mode 100644 index 0000000000..145c65477a --- /dev/null +++ b/meta/recipes-extended/mdadm/files/0002-Create.c-include-linux-falloc.h-for-FALLOC_FL_ZERO_R.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From a22b2345b9773d362acd85dd4c4a6a3cda9100d4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Tue, 12 Mar 2024 10:54:08 +0100 | ||
4 | Subject: [PATCH] Create.c: include linux/falloc.h for FALLOC_FL_ZERO_RANGE | ||
5 | definition | ||
6 | |||
7 | glibc provides this through fcntl.h but musl does not - should | ||
8 | be reported and fixed there. | ||
9 | |||
10 | Upstream-Status: Inappropriate [musl-specific issue] | ||
11 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
12 | --- | ||
13 | Create.c | 1 + | ||
14 | 1 file changed, 1 insertion(+) | ||
15 | |||
16 | diff --git a/Create.c b/Create.c | ||
17 | index 8082f54..7071f0a 100644 | ||
18 | --- a/Create.c | ||
19 | +++ b/Create.c | ||
20 | @@ -31,6 +31,7 @@ | ||
21 | #include <signal.h> | ||
22 | #include <sys/signalfd.h> | ||
23 | #include <sys/wait.h> | ||
24 | +#include <linux/falloc.h> | ||
25 | |||
26 | static int round_size_and_verify(unsigned long long *size, int chunk) | ||
27 | { | ||