summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust/rust-llvm/0003-Support-Add-missing-cstdint-header-to-Signals.h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/rust/rust-llvm/0003-Support-Add-missing-cstdint-header-to-Signals.h.patch')
-rw-r--r--meta/recipes-devtools/rust/rust-llvm/0003-Support-Add-missing-cstdint-header-to-Signals.h.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/rust-llvm/0003-Support-Add-missing-cstdint-header-to-Signals.h.patch b/meta/recipes-devtools/rust/rust-llvm/0003-Support-Add-missing-cstdint-header-to-Signals.h.patch
new file mode 100644
index 0000000000..6ed23aa9c5
--- /dev/null
+++ b/meta/recipes-devtools/rust/rust-llvm/0003-Support-Add-missing-cstdint-header-to-Signals.h.patch
@@ -0,0 +1,32 @@
1From a94bf34221fc4519bd8ec72560c2d363ffe2de4c Mon Sep 17 00:00:00 2001
2From: Sergei Trofimovich <slyich@gmail.com>
3Date: Mon, 23 May 2022 08:03:23 +0100
4Subject: [PATCH] [Support] Add missing <cstdint> header to Signals.h
5
6Without the change llvm build fails on this week's gcc-13 snapshot as:
7
8 [ 0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.o
9 In file included from llvm/lib/Support/Signals.cpp:14:
10 llvm/include/llvm/Support/Signals.h:119:8: error: variable or field 'CleanupOnSignal' declared void
11 119 | void CleanupOnSignal(uintptr_t Context);
12 | ^~~~~~~~~~~~~~~
13
14Upstream-Status: Backport [llvmorg-15.0.0 ff1681ddb303223973653f7f5f3f3435b48a1983]
15Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
16Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
17---
18 llvm/include/llvm/Support/Signals.h | 1 +
19 1 file changed, 1 insertion(+)
20
21diff --git a/llvm/include/llvm/Support/Signals.h b/llvm/include/llvm/Support/Signals.h
22index 44f5a750ff5c..937e0572d4a7 100644
23--- a/llvm/include/llvm/Support/Signals.h
24+++ b/llvm/include/llvm/Support/Signals.h
25@@ -14,6 +14,7 @@
26 #ifndef LLVM_SUPPORT_SIGNALS_H
27 #define LLVM_SUPPORT_SIGNALS_H
28
29+#include <cstdint>
30 #include <string>
31
32 namespace llvm {