diff --git a/packages/addons/tools/btrfs-progs/patches/btrfs-progs-01-compile-with-glibc-2.36.patch b/packages/addons/tools/btrfs-progs/patches/btrfs-progs-01-compile-with-glibc-2.36.patch new file mode 100644 index 0000000000..7fb9f25698 --- /dev/null +++ b/packages/addons/tools/btrfs-progs/patches/btrfs-progs-01-compile-with-glibc-2.36.patch @@ -0,0 +1,32 @@ +From 46eb32a019834b0a49ae9744db1a921aaa6a3d63 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 25 Jul 2022 11:58:35 -0700 +Subject: [PATCH] btrfs-progs: use linux mount.h instead of sys/mount.h + +This file includes linux/fs.h which includes linux/mount.h and with +glibc 2.36 linux/mount.h and glibc mount.h are not compatible [1] +therefore try to avoid including both headers + +[1] https://sourceware.org/glibc/wiki/Release/2.36 + +Signed-off-by: Khem Raj +Signed-off-by: David Sterba +--- + common/device-utils.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/common/device-utils.c b/common/device-utils.c +index 617b6746..25a4fb8c 100644 +--- a/common/device-utils.c ++++ b/common/device-utils.c +@@ -15,7 +15,6 @@ + */ + + #include +-#include + #include + #include + #include +-- +GitLab +