代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/filemanagement_dfs_service 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。