Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 1 | From 68100b1f2243304289b9a9a35e8fb0e1bb0cf70f Mon Sep 17 00:00:00 2001 |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 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: Pending |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 12 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 13 | --- |
| 14 | .../rocksdb/rocksdb/db/compaction/compaction_iteration_stats.h | 1 + |
| 15 | storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h | 1 + |
| 16 | .../rocksdb/rocksdb/table/block_based/data_block_hash_index.h | 1 + |
| 17 | storage/rocksdb/rocksdb/util/slice.cc | 1 + |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 18 | storage/rocksdb/rocksdb/util/string_util.h | 1 + |
| 19 | 5 files changed, 5 insertions(+) |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 20 | |
| 21 | diff --git a/storage/rocksdb/rocksdb/db/compaction/compaction_iteration_stats.h b/storage/rocksdb/rocksdb/db/compaction/compaction_iteration_stats.h |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 22 | index 963c1d8e..73487edd 100644 |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 23 | --- a/storage/rocksdb/rocksdb/db/compaction/compaction_iteration_stats.h |
| 24 | +++ b/storage/rocksdb/rocksdb/db/compaction/compaction_iteration_stats.h |
| 25 | @@ -5,6 +5,7 @@ |
| 26 | |
| 27 | #pragma once |
| 28 | |
| 29 | +#include <cstdint> |
| 30 | #include "rocksdb/rocksdb_namespace.h" |
| 31 | |
| 32 | struct CompactionIterationStats { |
| 33 | diff --git a/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h b/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 34 | index c7f93b4c..3c2ab805 100644 |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 35 | --- a/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h |
| 36 | +++ b/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h |
| 37 | @@ -8,6 +8,7 @@ |
| 38 | #pragma once |
| 39 | #ifndef ROCKSDB_LITE |
| 40 | |
| 41 | +#include <cstdint> |
| 42 | #include <string> |
| 43 | #include <vector> |
| 44 | #include "rocksdb/status.h" |
| 45 | diff --git a/storage/rocksdb/rocksdb/table/block_based/data_block_hash_index.h b/storage/rocksdb/rocksdb/table/block_based/data_block_hash_index.h |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 46 | index f356395f..32152217 100644 |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 47 | --- a/storage/rocksdb/rocksdb/table/block_based/data_block_hash_index.h |
| 48 | +++ b/storage/rocksdb/rocksdb/table/block_based/data_block_hash_index.h |
| 49 | @@ -5,6 +5,7 @@ |
| 50 | |
| 51 | #pragma once |
| 52 | |
| 53 | +#include <cstdint> |
| 54 | #include <string> |
| 55 | #include <vector> |
| 56 | |
| 57 | diff --git a/storage/rocksdb/rocksdb/util/slice.cc b/storage/rocksdb/rocksdb/util/slice.cc |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 58 | index 6db11cc9..c26b6a21 100644 |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 59 | --- a/storage/rocksdb/rocksdb/util/slice.cc |
| 60 | +++ b/storage/rocksdb/rocksdb/util/slice.cc |
| 61 | @@ -8,6 +8,7 @@ |
| 62 | // found in the LICENSE file. See the AUTHORS file for names of contributors. |
| 63 | |
| 64 | #include <algorithm> |
| 65 | +#include <cstdint> |
| 66 | #include "rocksdb/slice_transform.h" |
| 67 | #include "rocksdb/slice.h" |
| 68 | #include "util/string_util.h" |
Andrew Geissler | 220dafd | 2023-10-04 10:18:08 -0500 | [diff] [blame] | 69 | |
| 70 | diff --git a/util/string_util.h b/util/string_util.h |
| 71 | index 55d106fff02..11178fd1d7b 100644 |
| 72 | --- a/storage/rocksdb/rocksdb/util/string_util.h |
| 73 | +++ b/storage/rocksdb/rocksdb/util/string_util.h |
| 74 | @@ -6,6 +6,7 @@ |
| 75 | |
| 76 | #pragma once |
| 77 | |
| 78 | +#include <cstdint> |
| 79 | #include <sstream> |
| 80 | #include <string> |
| 81 | #include <unordered_map> |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 82 | -- |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 83 | 2.25.1 |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 84 | |