blob: a872be5b541ca3d5a561d5760ce86b3fc7327286 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
From 31012cdfa435d9203da3c3de8127b66bf018692a Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 24 Jan 2023 21:40:43 -0800
Subject: [PATCH] checkpoint.h: Add missing includes <cstdint>
It uses uint64_t and it comes from <cstdint>
This is needed with GCC 13 and newer [1]
[1] https://www.gnu.org/software/gcc/gcc-13/porting_to.html
Signed-off-by: Khem Raj <raj.khem@gmail.com>
* build error:
FAILED: CMakeFiles/checkpoint_test.dir/utilities/checkpoint/checkpoint_test.cc.o
In file included from rocksdb/9.10.0/git/utilities/checkpoint/checkpoint_test.cc:11:
rocksdb/9.10.0/git/include/rocksdb/utilities/checkpoint.h:49:35: error: 'uint64_t' has not been declared
49 | uint64_t log_size_for_flush = 0,
| ^~~~~~~~
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>'
13 | #include "rocksdb/status.h"
+++ |+#include <cstdint>
14 |
Upstream-Status: Submitted [https://github.com/facebook/rocksdb/pull/11137]
Signed-off-by: mark.yang <mark.yang@lge.com>
---
include/rocksdb/utilities/checkpoint.h | 1 +
1 file changed, 1 insertion(+)
Index: git/include/rocksdb/utilities/checkpoint.h
===================================================================
--- git.orig/include/rocksdb/utilities/checkpoint.h
+++ git/include/rocksdb/utilities/checkpoint.h
@@ -7,6 +7,7 @@
#pragma once
+#include <cstdint>
#include <string>
#include <vector>
|