blob: 62de78482072bbced93021e5989009b6f1135ecc [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From ccc89ff0c1f8e55a4a22444d051925408f265df1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 30 Jan 2019 10:32:11 -0800
4Subject: [PATCH] include missing <string> and errno.h headers
5
6This is unearthed when compiling with clang/libc++
7
8Upstream-Status: Submitted [https://github.com/rpm-software-management/libdnf/pull/677]
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 libdnf/conf/ConfigParser.hpp | 1 +
13 libdnf/module/modulemd/ModuleProfile.hpp | 1 +
14 libdnf/sack/changelog.hpp | 1 +
15 libdnf/utils/smartcols/Cell.hpp | 1 +
16 4 files changed, 4 insertions(+)
17
18diff --git a/libdnf/conf/ConfigParser.hpp b/libdnf/conf/ConfigParser.hpp
19index 97f25500..2a3851fa 100644
20--- a/libdnf/conf/ConfigParser.hpp
21+++ b/libdnf/conf/ConfigParser.hpp
22@@ -23,6 +23,7 @@
23
24 #include <map>
25 #include <stdexcept>
26+#include <string>
27 #include <utility>
28
29 namespace libdnf {
30diff --git a/libdnf/module/modulemd/ModuleProfile.hpp b/libdnf/module/modulemd/ModuleProfile.hpp
31index ab018deb..8d996ff4 100644
32--- a/libdnf/module/modulemd/ModuleProfile.hpp
33+++ b/libdnf/module/modulemd/ModuleProfile.hpp
34@@ -23,6 +23,7 @@
35
36
37 #include <memory>
38+#include <string>
39 #include <vector>
40
41 #include <modulemd/modulemd.h>
42diff --git a/libdnf/sack/changelog.hpp b/libdnf/sack/changelog.hpp
43index a3d3fc44..d830c414 100644
44--- a/libdnf/sack/changelog.hpp
45+++ b/libdnf/sack/changelog.hpp
46@@ -23,6 +23,7 @@
47 #define __CHANGELOG_HPP
48
49 #include <ctime>
50+#include <string>
51
52 namespace libdnf {
53
54diff --git a/libdnf/utils/smartcols/Cell.hpp b/libdnf/utils/smartcols/Cell.hpp
55index 2e811dee..b90f0050 100644
56--- a/libdnf/utils/smartcols/Cell.hpp
57+++ b/libdnf/utils/smartcols/Cell.hpp
58@@ -22,6 +22,7 @@
59 #define LIBDNF_CELL_HPP
60
61 #include <libsmartcols/libsmartcols.h>
62+#include <cerrno>
63 #include <string>
64 #include <stdexcept>
65