Patrick Williams | b9af875 | 2023-01-30 13:28:01 -0600 | [diff] [blame^] | 1 | From 6e376601c990abaa5e261d1311f92acb3b370b8f Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 24 Jan 2023 21:40:43 -0800 |
| 4 | Subject: [PATCH] Add missing includes <cstdint> and <cstdio> |
| 5 | |
| 6 | This is needed with GCC 13 and newer [1] |
| 7 | |
| 8 | [1] https://www.gnu.org/software/gcc/gcc-13/porting_to.html |
| 9 | |
| 10 | Upstream-Status: Backport [https://github.com/facebook/rocksdb/commit/88edfbfb5e1cac228f7cc31fbec24bb637fe54b1] |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | .../rocksdb/rocksdb/db/compaction/compaction_iteration_stats.h | 1 + |
| 14 | storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h | 1 + |
| 15 | .../rocksdb/rocksdb/table/block_based/data_block_hash_index.h | 1 + |
| 16 | storage/rocksdb/rocksdb/util/slice.cc | 1 + |
| 17 | storage/rocksdb/rocksdb/util/string_util.h | 1 + |
| 18 | tpool/aio_linux.cc | 1 + |
| 19 | 6 files changed, 6 insertions(+) |
| 20 | |
| 21 | --- a/thirdparty/rocksdb/include/rocksdb/utilities/checkpoint.h |
| 22 | +++ b/thirdparty/rocksdb/include/rocksdb/utilities/checkpoint.h |
| 23 | @@ -8,6 +8,7 @@ |
| 24 | #pragma once |
| 25 | #ifndef ROCKSDB_LITE |
| 26 | |
| 27 | +#include <cstdint> |
| 28 | #include <string> |
| 29 | #include "rocksdb/status.h" |
| 30 | |
| 31 | --- a/thirdparty/rocksdb/util/string_util.h |
| 32 | +++ b/thirdparty/rocksdb/util/string_util.h |
| 33 | @@ -6,6 +6,7 @@ |
| 34 | |
| 35 | #pragma once |
| 36 | |
| 37 | +#include <cstdint> |
| 38 | #include <sstream> |
| 39 | #include <string> |
| 40 | #include <unordered_map> |
| 41 | --- a/extensions/expression-language/common/Value.h |
| 42 | +++ b/extensions/expression-language/common/Value.h |
| 43 | @@ -15,6 +15,7 @@ |
| 44 | * limitations under the License. |
| 45 | */ |
| 46 | |
| 47 | +#include <cstdint> |
| 48 | #include <string> |
| 49 | #include <sstream> |
| 50 | #include <iomanip> |
| 51 | --- a/libminifi/include/utils/StringUtils.h |
| 52 | +++ b/libminifi/include/utils/StringUtils.h |
| 53 | @@ -18,6 +18,7 @@ |
| 54 | #define LIBMINIFI_INCLUDE_IO_STRINGUTILS_H_ |
| 55 | #include <iostream> |
| 56 | #include <cstring> |
| 57 | +#include <cstdint> |
| 58 | #include <functional> |
| 59 | #ifdef WIN32 |
| 60 | #include <cwctype> |
| 61 | --- a/thirdparty/rocksdb/db/compaction_iteration_stats.h |
| 62 | +++ b/thirdparty/rocksdb/db/compaction_iteration_stats.h |
| 63 | @@ -5,6 +5,7 @@ |
| 64 | |
| 65 | #pragma once |
| 66 | |
| 67 | +#include <cstdint> |
| 68 | struct CompactionIterationStats { |
| 69 | // Compaction statistics |
| 70 | |