mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-03 14:19:52 +00:00
fio: fix build with musl
Backport the upstream fix. Signed-off-by: Max Krummenacher <max.oss.09@gmail.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
committed by
Khem Raj
parent
3128361f09
commit
6169170141
+33
@@ -0,0 +1,33 @@
|
|||||||
|
From 82688fff1241549177ed4d55c27c93117d738947 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Lucas Hecht <lucas.hecht@agdsn.de>
|
||||||
|
Date: Tue, 26 May 2026 18:49:48 +0200
|
||||||
|
Subject: [PATCH] backend: remove linux/prctl.h include to fix musl conflict
|
||||||
|
|
||||||
|
Building with musl fails due to a duplicate definition of prctl_mm_map.
|
||||||
|
This is because musl redefines linux/prctl.h in sys/prctl.h.
|
||||||
|
|
||||||
|
This commit removes the linux/prctl.h include.
|
||||||
|
|
||||||
|
Fixes: #2096
|
||||||
|
|
||||||
|
Upstream-Status: Backport [a84eece62edd46c1f4c8047f1052ac6181fc8b3e]
|
||||||
|
Signed-off-by: Lucas Hecht <lucas.hecht@agdsn.de>
|
||||||
|
---
|
||||||
|
backend.c | 1 -
|
||||||
|
1 file changed, 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/backend.c b/backend.c
|
||||||
|
index 230d7fd07965..cfc411531818 100644
|
||||||
|
--- a/backend.c
|
||||||
|
+++ b/backend.c
|
||||||
|
@@ -32,7 +32,6 @@
|
||||||
|
#include <pthread.h>
|
||||||
|
|
||||||
|
#ifdef CONFIG_LINUX
|
||||||
|
-#include <linux/prctl.h>
|
||||||
|
#include <sys/prctl.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
--
|
||||||
|
2.51.0
|
||||||
|
|
||||||
@@ -24,6 +24,7 @@ PACKAGECONFIG[numa] = ",--disable-numa,numactl"
|
|||||||
|
|
||||||
SRC_URI = " \
|
SRC_URI = " \
|
||||||
git://git.kernel.dk/fio.git;branch=master;tag=${BP} \
|
git://git.kernel.dk/fio.git;branch=master;tag=${BP} \
|
||||||
|
file://0001-backend-remove-linux-prctl.h-include-to-fix-musl-con.patch \
|
||||||
"
|
"
|
||||||
SRCREV = "ab77643023f5d7e3c1b71a7576a564f368bf577a"
|
SRCREV = "ab77643023f5d7e3c1b71a7576a564f368bf577a"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user