diff options
Diffstat (limited to 'meta-oe/recipes-dbs/rocksdb/files/0001-checkpoint.h-Add-missing-includes-cstdint.patch')
| -rw-r--r-- | meta-oe/recipes-dbs/rocksdb/files/0001-checkpoint.h-Add-missing-includes-cstdint.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-oe/recipes-dbs/rocksdb/files/0001-checkpoint.h-Add-missing-includes-cstdint.patch b/meta-oe/recipes-dbs/rocksdb/files/0001-checkpoint.h-Add-missing-includes-cstdint.patch new file mode 100644 index 0000000000..a872be5b54 --- /dev/null +++ b/meta-oe/recipes-dbs/rocksdb/files/0001-checkpoint.h-Add-missing-includes-cstdint.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | From 31012cdfa435d9203da3c3de8127b66bf018692a 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] checkpoint.h: Add missing includes <cstdint> | ||
| 5 | |||
| 6 | It uses uint64_t and it comes from <cstdint> | ||
| 7 | This is needed with GCC 13 and newer [1] | ||
| 8 | |||
| 9 | [1] https://www.gnu.org/software/gcc/gcc-13/porting_to.html | ||
| 10 | |||
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 12 | |||
| 13 | * build error: | ||
| 14 | FAILED: CMakeFiles/checkpoint_test.dir/utilities/checkpoint/checkpoint_test.cc.o | ||
| 15 | In file included from rocksdb/9.10.0/git/utilities/checkpoint/checkpoint_test.cc:11: | ||
| 16 | rocksdb/9.10.0/git/include/rocksdb/utilities/checkpoint.h:49:35: error: 'uint64_t' has not been declared | ||
| 17 | 49 | uint64_t log_size_for_flush = 0, | ||
| 18 | | ^~~~~~~~ | ||
| 19 | rocksdb/9.10.0/git/include/rocksdb/utilities/checkpoint.h:14:1: note: 'uint64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>' | ||
| 20 | 13 | #include "rocksdb/status.h" | ||
| 21 | +++ |+#include <cstdint> | ||
| 22 | 14 | | ||
| 23 | |||
| 24 | Upstream-Status: Submitted [https://github.com/facebook/rocksdb/pull/11137] | ||
| 25 | Signed-off-by: mark.yang <mark.yang@lge.com> | ||
| 26 | --- | ||
| 27 | include/rocksdb/utilities/checkpoint.h | 1 + | ||
| 28 | 1 file changed, 1 insertion(+) | ||
| 29 | |||
| 30 | Index: git/include/rocksdb/utilities/checkpoint.h | ||
| 31 | =================================================================== | ||
| 32 | --- git.orig/include/rocksdb/utilities/checkpoint.h | ||
| 33 | +++ git/include/rocksdb/utilities/checkpoint.h | ||
| 34 | @@ -7,6 +7,7 @@ | ||
| 35 | |||
| 36 | #pragma once | ||
| 37 | |||
| 38 | +#include <cstdint> | ||
| 39 | #include <string> | ||
| 40 | #include <vector> | ||
| 41 | |||
