From 2e944e083e7bddc0a8f54c5a83a01c9333b3777b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mario=20Andr=C3=A9s=20P=C3=A9rez?= Date: Wed, 26 Nov 2025 01:40:28 +0100 Subject: [PATCH] tools: mtd-utils: fix patch 110 for musl This patch is introducing the same header that the other patch 001-ubifs-utils-link-libmissing.a-in-case-execinfo.h-isn.patch is guarding against missing in musl libc. We need to mimic that. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Mario Andrés Pérez Link: https://github.com/openwrt/openwrt/pull/20938 Signed-off-by: Christian Marangi --- tools/mtd-utils/patches/110-portability.patch | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/mtd-utils/patches/110-portability.patch b/tools/mtd-utils/patches/110-portability.patch index cc4076acb1..f226094e0b 100644 --- a/tools/mtd-utils/patches/110-portability.patch +++ b/tools/mtd-utils/patches/110-portability.patch @@ -50,16 +50,20 @@ #define UBI_VERSION 1 --- a/ubifs-utils/common/compiler_attributes.h +++ b/ubifs-utils/common/compiler_attributes.h -@@ -1,6 +1,8 @@ +@@ -1,6 +1,12 @@ #ifndef __COMPILER_ATTRIBUTES_H__ #define __COMPILER_ATTRIBUTES_H__ ++#if HAVE_EXECINFO_H +#include ++#else ++#include "libmissing.h" ++#endif + #if __has_attribute(__fallthrough__) #define fallthrough __attribute__((__fallthrough__)) #else -@@ -11,6 +13,7 @@ +@@ -11,6 +17,7 @@ #define __unused __attribute__((__unused__)) #define __const __attribute__((__const__)) #define __must_check __attribute__((__warn_unused_result__)) -- 2.30.2