mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-10 06:24:40 +01:00
tools: mtd-utils: fix patch 110 for musl
Some checks failed
Build all core packages / Build all core packages for selected target (push) Waiting to run
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Some checks failed
Build all core packages / Build all core packages for selected target (push) Waiting to run
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
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 <mapb_@outlook.com> Link: https://github.com/openwrt/openwrt/pull/20938 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
5a4e65f612
commit
2e944e083e
1 changed files with 6 additions and 2 deletions
|
|
@ -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 <execinfo.h>
|
||||
+#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__))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue