distributeddatamgr_kv_store/0004-establish-kvstore-dependence-on-boundscheck.patch
2024-03-07 16:58:14 +08:00

38 lines
1.3 KiB
Diff

From 09750a4c777c399bdaefaae74e4523a86b241e93 Mon Sep 17 00:00:00 2001
From: heppen <hepeng68@huawei.com>
Date: Thu, 7 Mar 2024 16:26:29 +0800
Subject: [PATCH] establish kvstore dependency on boundscheck
---
frameworks/libs/distributeddb/BUILD.gn | 1 +
.../libs/distributeddb/communicator/src/protocol_proto.cpp | 1 +
2 files changed, 2 insertions(+)
diff --git a/frameworks/libs/distributeddb/BUILD.gn b/frameworks/libs/distributeddb/BUILD.gn
index d08716e..536f8ee 100644
--- a/frameworks/libs/distributeddb/BUILD.gn
+++ b/frameworks/libs/distributeddb/BUILD.gn
@@ -273,6 +273,7 @@ ohos_shared_library("distributeddb") {
deps = [
"//third_party/sqlite:sqlite",
"//third_party/zlib:shared_libz",
+ "//third_party/bounds_checking_function:libsec_shared",
]
configs += [ "//third_party/jsoncpp:jsoncpp_config" ]
diff --git a/frameworks/libs/distributeddb/communicator/src/protocol_proto.cpp b/frameworks/libs/distributeddb/communicator/src/protocol_proto.cpp
index 6e58a47..4d9325f 100644
--- a/frameworks/libs/distributeddb/communicator/src/protocol_proto.cpp
+++ b/frameworks/libs/distributeddb/communicator/src/protocol_proto.cpp
@@ -24,6 +24,7 @@
#include "macro_utils.h"
#include "endian_convert.h"
#include "header_converter.h"
+#include <mutex>
namespace DistributedDB {
namespace {
--
2.43.0