]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
Fix build with gcc 13 by including <cstdint> (#11118)
authorHeiko Becker <heirecka@exherbo.org>
Wed, 25 Jan 2023 22:30:32 +0000 (14:30 -0800)
committerTim Serong <tserong@suse.com>
Mon, 20 Mar 2023 02:53:32 +0000 (13:53 +1100)
Summary:
Like other versions before, gcc 13 moved some includes around and as a result <cstdint> is no longer transitively included [1]. Explicitly include it for uint{32,64}_t.

[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes

Pull Request resolved: https://github.com/facebook/rocksdb/pull/11118

Reviewed By: cbi42

Differential Revision: D42711356

Pulled By: ajkr

fbshipit-source-id: 5ea257b85b7017f40fd8fdbce965336da95c55b2
(cherry picked from commit 88edfbfb5e1cac228f7cc31fbec24bb637fe54b1)

table/block_based/data_block_hash_index.h
util/string_util.h

index f356395f329251de1ecd3baa77bd9820c83c4f06..3215221755d5407eb9b6f5bf6a3b29c564022163 100644 (file)
@@ -5,6 +5,7 @@
 
 #pragma once
 
+#include <cstdint>
 #include <string>
 #include <vector>
 
index 55d106fff02bbeb3e3f1ecd7dec26ff50896d60b..11178fd1d7b031e42d5490397050b151d173c627 100644 (file)
@@ -6,6 +6,7 @@
 
 #pragma once
 
+#include <cstdint>
 #include <sstream>
 #include <string>
 #include <unordered_map>