1 Star 0 Fork 6

s_c_c/filemanagement_dfs_service

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0003-feat-for-embedded-not-include-headerfile-error.patch 2.18 KB
一键复制 编辑 原始数据 按行查看 历史
From 46fc90307b7ec99324c4109ac580c8f0c75ef607 Mon Sep 17 00:00:00 2001
From: s_c_c <[email protected]>
Date: Wed, 3 Jul 2024 15:11:01 +0800
Subject: [PATCH] feat for embedded not include headerfile error
---
services/distributedfiledaemon/BUILD.gn | 5 +++++
utils/BUILD.gn | 1 +
utils/system/include/dfsu_actor.h | 2 ++
3 files changed, 8 insertions(+)
diff --git a/services/distributedfiledaemon/BUILD.gn b/services/distributedfiledaemon/BUILD.gn
index 60f1696..7d6f7aa 100644
--- a/services/distributedfiledaemon/BUILD.gn
+++ b/services/distributedfiledaemon/BUILD.gn
@@ -12,6 +12,7 @@
# limitations under the License.
import("//build/ohos.gni")
import("//foundation/filemanagement/dfs_service/distributedfile.gni")
+import("//build/config/sysroot.gni")
ohos_shared_library("libdistributedfiledaemon") {
include_dirs = [
@@ -21,6 +22,8 @@ ohos_shared_library("libdistributedfiledaemon") {
"//third_party/json/include",
"//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include",
"//foundation/systemabilitymgr/samgr/interfaces/innerkits/common/include",
+ "${sysroot}/usr/include/dsoftbus/",
+ "${sysroot}/usr/include/samgr/",
]
sources = [
@@ -56,6 +59,8 @@ ohos_shared_library("libdistributedfiledaemon") {
]
configs = [ "${utils_path}:compiler_configs" ]
+ cflags = ["-Wno-unused-command-line-argument", "-Wno-pessimizing-move"]
+
defines = [ "LOG_TAG=\"distributedfile_daemon\"" ]
part_name = "dfs_service"
diff --git a/utils/BUILD.gn b/utils/BUILD.gn
index 5fd75e7..cbebfd7 100644
--- a/utils/BUILD.gn
+++ b/utils/BUILD.gn
@@ -27,6 +27,7 @@ config("compiler_configs") {
"-fvisibility=hidden",
"-ffunction-sections",
"-Os",
+ "-Wno-shadow",
]
configs = [ "//build/config/compiler:exceptions" ]
diff --git a/utils/system/include/dfsu_actor.h b/utils/system/include/dfsu_actor.h
index a91aa9d..586d723 100644
--- a/utils/system/include/dfsu_actor.h
+++ b/utils/system/include/dfsu_actor.h
@@ -20,6 +20,8 @@
#include <future>
#include <list>
#include <stdexcept>
+#include <thread>
+#include <chrono>
#include "dfsu_cmd.h"
#include "dfsu_thread_safe_queue.h"
--
2.45.2.windows.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/s-c-c/filemanagement_dfs_service.git
[email protected]:s-c-c/filemanagement_dfs_service.git
s-c-c
filemanagement_dfs_service
filemanagement_dfs_service
master

搜索帮助