summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/fmt/files/fix-gcc9.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/fmt/files/fix-gcc9.patch')
-rw-r--r--meta/recipes-devtools/fmt/files/fix-gcc9.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-devtools/fmt/files/fix-gcc9.patch b/meta/recipes-devtools/fmt/files/fix-gcc9.patch
new file mode 100644
index 0000000000..1d67f7094d
--- /dev/null
+++ b/meta/recipes-devtools/fmt/files/fix-gcc9.patch
@@ -0,0 +1,26 @@
1From 5f0572acdca120e11f6d810765d7a6a3c593fcbb Mon Sep 17 00:00:00 2001
2From: Victor Zverovich <viz@meta.com>
3Date: Sat, 18 Jan 2025 09:00:22 -0800
4Subject: [PATCH] Workaround a compilation error on gcc 9.4
5
6Upstream-Status: Backport [5f0572acdca120e11f6d810765d7a6a3c593fcbb]
7Signed-off-by: Ross Burton <ross.burton@arm.com>
8---
9 include/fmt/format.h | 4 +++-
10 1 file changed, 3 insertions(+), 1 deletion(-)
11
12diff --git a/include/fmt/format.h b/include/fmt/format.h
13index 9cd523a9e6a5..4466b4f4d24b 100644
14--- a/include/fmt/format.h
15+++ b/include/fmt/format.h
16@@ -227,7 +227,9 @@ FMT_CONSTEXPR inline void abort_fuzzing_if(bool condition) {
17 #if defined(FMT_USE_STRING_VIEW)
18 template <typename Char> using std_string_view = std::basic_string_view<Char>;
19 #else
20-template <typename T> struct std_string_view {};
21+template <typename Char> struct std_string_view {
22+ operator basic_string_view<Char>() const;
23+};
24 #endif
25
26 template <typename Char, Char... C> struct string_literal {