blob: 277fd9fbf6f5886c673e3eabc76254726d2871de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
From 779ea105564b6d717300af2fcb02a399737a536f Mon Sep 17 00:00:00 2001
From: ctxnop <ctxnop@gmail.com>
Date: Mon, 15 May 2023 19:30:16 +0200
Subject: [PATCH] Fix #1558: Don't assume inclusion of cstdint
With last versions of gcc, some headers don't include cstdint anymore,
but some sources assume that it is.
Upstream-Status: Backport [https://github.com/rpm-software-management/libdnf/commit/779ea105564b6d717300af2fcb02a399737a536f]
Signed-off-by: ctxnop <ctxnop@gmail.com>
---
libdnf/conf/ConfigMain.hpp | 1 +
libdnf/conf/ConfigRepo.hpp | 1 +
libdnf/conf/OptionSeconds.hpp | 2 ++
3 files changed, 4 insertions(+)
diff --git a/libdnf/conf/ConfigMain.hpp b/libdnf/conf/ConfigMain.hpp
index 19395c71..59f65c48 100644
--- a/libdnf/conf/ConfigMain.hpp
+++ b/libdnf/conf/ConfigMain.hpp
@@ -32,6 +32,7 @@
#include "OptionString.hpp"
#include "OptionStringList.hpp"
+#include <cstdint>
#include <memory>
namespace libdnf {
diff --git a/libdnf/conf/ConfigRepo.hpp b/libdnf/conf/ConfigRepo.hpp
index 2b198441..84cafbad 100644
--- a/libdnf/conf/ConfigRepo.hpp
+++ b/libdnf/conf/ConfigRepo.hpp
@@ -26,6 +26,7 @@
#include "ConfigMain.hpp"
#include "OptionChild.hpp"
+#include <cstdint>
#include <memory>
namespace libdnf {
diff --git a/libdnf/conf/OptionSeconds.hpp b/libdnf/conf/OptionSeconds.hpp
index dc714b23..a80a973f 100644
--- a/libdnf/conf/OptionSeconds.hpp
+++ b/libdnf/conf/OptionSeconds.hpp
@@ -25,6 +25,8 @@
#include "OptionNumber.hpp"
+#include <cstdint>
+
namespace libdnf {
/**
--
2.42.0
|