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

