summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mdadm/files/0002-Create.c-include-linux-falloc.h-for-FALLOC_FL_ZERO_R.patch
blob: 145c65477ab37f86d1398ee264424e359747f6bc (plain)
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
From a22b2345b9773d362acd85dd4c4a6a3cda9100d4 Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex@linutronix.de>
Date: Tue, 12 Mar 2024 10:54:08 +0100
Subject: [PATCH] Create.c: include linux/falloc.h for FALLOC_FL_ZERO_RANGE
 definition

glibc provides this through fcntl.h but musl does not - should
be reported and fixed there.

Upstream-Status: Inappropriate [musl-specific issue]
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 Create.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Create.c b/Create.c
index 8082f54..7071f0a 100644
--- a/Create.c
+++ b/Create.c
@@ -31,6 +31,7 @@
 #include	<signal.h>
 #include	<sys/signalfd.h>
 #include	<sys/wait.h>
+#include	<linux/falloc.h>
 
 static int round_size_and_verify(unsigned long long *size, int chunk)
 {