summaryrefslogtreecommitdiff
path: root/dev-cpp/abseil-cpp/files/abseil-cpp-20211102.0-r2-gcc-13.patch
diff options
context:
space:
mode:
authorWANG Xuerui <xen0n@gentoo.org>2022-08-12 00:11:27 +0800
committerWANG Xuerui <xen0n@gentoo.org>2022-08-23 15:28:35 +0800
commit227b524fe01fd6329b8dd8ee7bbd9bef97d106a7 (patch)
treeff4efdbac952963e5239633f40cdafa16a2cce27 /dev-cpp/abseil-cpp/files/abseil-cpp-20211102.0-r2-gcc-13.patch
parenta09062248fbb0fbfdf23b5a54b4d1146d0a95556 (diff)
downloadgentoo-227b524fe01fd6329b8dd8ee7bbd9bef97d106a7.tar.gz
gentoo-227b524fe01fd6329b8dd8ee7bbd9bef97d106a7.tar.bz2
gentoo-227b524fe01fd6329b8dd8ee7bbd9bef97d106a7.zip
dev-cpp/abseil-cpp: 20211102.0-r2: fix build on gcc-13
Fixes: https://bugs.gentoo.org/865211 Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
Diffstat (limited to 'dev-cpp/abseil-cpp/files/abseil-cpp-20211102.0-r2-gcc-13.patch')
-rw-r--r--dev-cpp/abseil-cpp/files/abseil-cpp-20211102.0-r2-gcc-13.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-cpp/abseil-cpp/files/abseil-cpp-20211102.0-r2-gcc-13.patch b/dev-cpp/abseil-cpp/files/abseil-cpp-20211102.0-r2-gcc-13.patch
new file mode 100644
index 000000000000..2a847be09e9a
--- /dev/null
+++ b/dev-cpp/abseil-cpp/files/abseil-cpp-20211102.0-r2-gcc-13.patch
@@ -0,0 +1,24 @@
+https://github.com/abseil/abseil-cpp/commit/36a4b073f1e7e02ed7d1ac140767e36f82f09b7c
+
+From 36a4b073f1e7e02ed7d1ac140767e36f82f09b7c Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich <slyich@gmail.com>
+Date: Fri, 27 May 2022 22:27:58 +0100
+Subject: [PATCH] absl/strings/internal/str_format/extension.h: add missing
+ <stdint.h> include
+
+Without the change absl-cpp build fails on this week's gcc-13 snapshot as:
+
+ /build/abseil-cpp/absl/strings/internal/str_format/extension.h:34:33: error: found ':' in nested-name-specifier, expected '::'
+ 34 | enum class FormatConversionChar : uint8_t;
+ | ^
+ | ::
+--- a/absl/strings/internal/str_format/extension.h
++++ b/absl/strings/internal/str_format/extension.h
+@@ -17,6 +17,7 @@
+ #define ABSL_STRINGS_INTERNAL_STR_FORMAT_EXTENSION_H_
+
+ #include <limits.h>
++#include <stdint.h>
+
+ #include <cstddef>
+ #include <cstring>