Skip to content

Commit 2e944e0

Browse files
map-bAnsuel
authored andcommitted
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. Signed-off-by: Mario Andrés Pérez <[email protected]> Link: openwrt/openwrt#20938 Signed-off-by: Christian Marangi <[email protected]>
1 parent 5a4e65f commit 2e944e0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tools/mtd-utils/patches/110-portability.patch

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,20 @@
5050
#define UBI_VERSION 1
5151
--- a/ubifs-utils/common/compiler_attributes.h
5252
+++ b/ubifs-utils/common/compiler_attributes.h
53-
@@ -1,6 +1,8 @@
53+
@@ -1,6 +1,12 @@
5454
#ifndef __COMPILER_ATTRIBUTES_H__
5555
#define __COMPILER_ATTRIBUTES_H__
5656

57+
+#if HAVE_EXECINFO_H
5758
+#include <execinfo.h>
59+
+#else
60+
+#include "libmissing.h"
61+
+#endif
5862
+
5963
#if __has_attribute(__fallthrough__)
6064
#define fallthrough __attribute__((__fallthrough__))
6165
#else
62-
@@ -11,6 +13,7 @@
66+
@@ -11,6 +17,7 @@
6367
#define __unused __attribute__((__unused__))
6468
#define __const __attribute__((__const__))
6569
#define __must_check __attribute__((__warn_unused_result__))

0 commit comments

Comments
 (0)