Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 1 | From ccc89ff0c1f8e55a4a22444d051925408f265df1 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 30 Jan 2019 10:32:11 -0800 |
| 4 | Subject: [PATCH] include missing <string> and errno.h headers |
| 5 | |
| 6 | This is unearthed when compiling with clang/libc++ |
| 7 | |
| 8 | Upstream-Status: Submitted [https://github.com/rpm-software-management/libdnf/pull/677] |
| 9 | |
| 10 | Signed-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 | |
| 18 | diff --git a/libdnf/conf/ConfigParser.hpp b/libdnf/conf/ConfigParser.hpp |
| 19 | index 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 { |
| 30 | diff --git a/libdnf/module/modulemd/ModuleProfile.hpp b/libdnf/module/modulemd/ModuleProfile.hpp |
| 31 | index 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> |
| 42 | diff --git a/libdnf/sack/changelog.hpp b/libdnf/sack/changelog.hpp |
| 43 | index 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 | |
| 54 | diff --git a/libdnf/utils/smartcols/Cell.hpp b/libdnf/utils/smartcols/Cell.hpp |
| 55 | index 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 | |