0022-clang-fix-unwind-chain-inclusion.patch (1190B)
1 From 5b9530079f3623af96d47938adec11eefde65974 Mon Sep 17 00:00:00 2001 2 From: q66 <q66@chimera-linux.org> 3 Date: Tue, 2 May 2023 16:25:59 +0200 4 Subject: [PATCH 22/29] clang: fix unwind chain inclusion 5 6 This fixes the compiler complaining about the __has_include_next. 7 --- 8 clang/lib/Headers/unwind.h | 9 +++++---- 9 1 file changed, 5 insertions(+), 4 deletions(-) 10 11 diff --git a/clang/lib/Headers/unwind.h b/clang/lib/Headers/unwind.h 12 index 33e1792cd..a32e18cda 100644 13 --- a/clang/lib/Headers/unwind.h 14 +++ b/clang/lib/Headers/unwind.h 15 @@ -9,9 +9,6 @@ 16 17 /* See "Data Definitions for libgcc_s" in the Linux Standard Base.*/ 18 19 -#ifndef __CLANG_UNWIND_H 20 -#define __CLANG_UNWIND_H 21 - 22 #if defined(__APPLE__) && __has_include_next(<unwind.h>) 23 /* Darwin (from 11.x on) provide an unwind.h. If that's available, 24 * use it. libunwind wraps some of its definitions in #ifdef _GNU_SOURCE, 25 @@ -39,6 +36,9 @@ 26 # endif 27 #else 28 29 +#ifndef __CLANG_UNWIND_H 30 +#define __CLANG_UNWIND_H 31 + 32 #include <stdint.h> 33 34 #ifdef __cplusplus 35 @@ -327,6 +327,7 @@ _Unwind_Ptr _Unwind_GetTextRelBase(struct _Unwind_Context *); 36 } 37 #endif 38 39 +#endif /* __CLANG_UNWIND_H */ 40 + 41 #endif 42 43 -#endif /* __CLANG_UNWIND_H */ 44 -- 45 2.49.0 46