forked from pool/heaptrack
This commit is contained in:
parent
153a534f40
commit
0cac62642d
29
0001-Fix-build-with-gcc-13-by-including-cstdint.patch
Normal file
29
0001-Fix-build-with-gcc-13-by-including-cstdint.patch
Normal file
@ -0,0 +1,29 @@
|
||||
From 315aa7116d588f92b67c4bb84e1549529cb2fca0 Mon Sep 17 00:00:00 2001
|
||||
From: Heiko Becker <heiko.becker@kde.org>
|
||||
Date: Mon, 23 Jan 2023 23:44:09 +0100
|
||||
Subject: [PATCH] Fix build with gcc 13 by including <cstdint>
|
||||
|
||||
Like other versions before, gcc 13 moved some includes around and as a
|
||||
result <cstdint> is no longer transitively included [1]. Explicitly include
|
||||
it for uint{32,64}_t.
|
||||
|
||||
[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
|
||||
---
|
||||
src/util/linereader.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/util/linereader.h b/src/util/linereader.h
|
||||
index 18ec165..a8af47c 100644
|
||||
--- a/src/util/linereader.h
|
||||
+++ b/src/util/linereader.h
|
||||
@@ -7,6 +7,7 @@
|
||||
#ifndef LINEREADER_H
|
||||
#define LINEREADER_H
|
||||
|
||||
+#include <cstdint>
|
||||
#include <istream>
|
||||
#include <string>
|
||||
|
||||
--
|
||||
2.39.1
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 7 23:22:36 UTC 2023 - Christophe Marin <christophe@krop.fr>
|
||||
|
||||
- Add GCC 13 compatibility patch:
|
||||
* 0001-Fix-build-with-gcc-13-by-including-cstdint.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 27 08:15:26 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>
|
||||
|
||||
|
@ -29,6 +29,8 @@ Source0: https://download.kde.org/stable/heaptrack/%{version}/%{name}-%{v
|
||||
Source1: https://download.kde.org/stable/heaptrack/%{version}/%{name}-%{version}.tar.xz.sig
|
||||
Source2: heaptrack.keyring
|
||||
%endif
|
||||
# PATCH-FIX-UPSTREAM
|
||||
Patch0: 0001-Fix-build-with-gcc-13-by-including-cstdint.patch
|
||||
BuildRequires: extra-cmake-modules
|
||||
BuildRequires: kf5-filesystem
|
||||
BuildRequires: libboost_container-devel
|
||||
|
Loading…
Reference in New Issue
Block a user