summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/btrfs-tools/btrfs-tools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-07-28 07:30:44 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-02 11:29:59 +0100
commit06b27bb7981fccba2b5ae3a624c5d19bd018d518 (patch)
treeac3402fd6f700c28a652c1065d9b111275b1d261 /meta/recipes-devtools/btrfs-tools/btrfs-tools
parente41d371dae7adee55f5fae061a075f68a1cd770c (diff)
downloadpoky-06b27bb7981fccba2b5ae3a624c5d19bd018d518.tar.gz
btrfs-tools: Use linux/mount.h instead of sys/mount.h
This fixes the conflict thats with mount.h from glibc 2.36+ and kernel [1] [1] https://sourceware.org/glibc/wiki/Release/2.36 (From OE-Core rev: f2617ecc93048a29e37d4213e08ddbd997139f6c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/btrfs-tools/btrfs-tools')
-rw-r--r--meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-device-utils.c-Use-linux-mount.h-instead-of-sys-moun.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-device-utils.c-Use-linux-mount.h-instead-of-sys-moun.patch b/meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-device-utils.c-Use-linux-mount.h-instead-of-sys-moun.patch
new file mode 100644
index 0000000000..1397e50b30
--- /dev/null
+++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-device-utils.c-Use-linux-mount.h-instead-of-sys-moun.patch
@@ -0,0 +1,32 @@
1From d9f118a3408a8a2530f0f60e8072f4323911530f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 27 Jul 2022 01:08:20 +0000
4Subject: [PATCH] device-utils.c: Use linux mount.h instead of sys/mount.h
5
6This file includes linucx/fs.h which includes linux/mount.h and with
7glibc 2.36 linux/mount.h and glibc mount.h are not compatible [1]
8therefore try to avoid including both headers
9
10[1] https://sourceware.org/glibc/wiki/Release/2.36
11
12Upstream-Status: Submitted [https://www.spinics.net/lists/linux-btrfs/msg126918.html]
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 common/device-utils.c | 1 -
16 1 file changed, 1 deletion(-)
17
18diff --git a/common/device-utils.c b/common/device-utils.c
19index 617b6746..25a4fb8c 100644
20--- a/common/device-utils.c
21+++ b/common/device-utils.c
22@@ -15,7 +15,6 @@
23 */
24
25 #include <sys/ioctl.h>
26-#include <sys/mount.h>
27 #include <sys/statfs.h>
28 #include <sys/types.h>
29 #include <stdio.h>
30--
312.25.1
32