From 6c7d1bbbe292b31b0dadb65a04d5724d830cbaf9 Mon Sep 17 00:00:00 2001 From: YunShu Date: Tue, 5 Sep 2023 09:31:05 +0800 Subject: [PATCH] fix: add missing header files (#257) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit my gcc version: ```text gcc 版本 13.2.1 20230801 (GCC) ``` build log: ```log [ 69%] Building CXX object src/observer/CMakeFiles/observer_static.dir/storage/trx/trx.cpp.o In file included from /home/yunshu/Studio/GitHub/miniob/src/observer/storage/persist/persist.cpp:18: /home/yunshu/Studio/GitHub/miniob/src/observer/storage/persist/persist.h:48:15: 错误:‘uint64_t’未声明 48 | RC write_at(uint64_t offset, int size, const char *data, int64_t *out_size = nullptr); | ^~~~~~~~ ``` ### What problem were solved in this pull request? Problem: build failed because the declaration of uint64_t could not be found. ### What is changed and how it works? add `` --- src/observer/storage/persist/persist.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/observer/storage/persist/persist.h b/src/observer/storage/persist/persist.h index 044cf03..c9ae946 100644 --- a/src/observer/storage/persist/persist.h +++ b/src/observer/storage/persist/persist.h @@ -16,6 +16,7 @@ See the Mulan PSL v2 for more details. */ #include #include #include +#include #include #include #include -- GitLab