提交 bde054de 编写于 作者: X xionglei6

init: fix compile warning

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 670f0bab
......@@ -172,7 +172,7 @@ if (defined(ohos_lite)) {
if (defined(product_name) && product_name == "rk3568") {
defines += [ "PRODUCT_RK" ]
}
defines += [ "_GNU_SOURCE" ]
install_images = [
"system",
"updater",
......
......@@ -47,5 +47,6 @@ ohos_static_library("libinit_utils") {
"//base/startup/init_lite/services/log:init_log",
"//third_party/bounds_checking_function:libsec_static",
]
defines = [ "_GNU_SOURCE" ]
part_name = "init"
}
......@@ -61,7 +61,6 @@ const int TEST_MAX_ONE_ARG_LEN = 64; // max length of one param
const int CAT_BUF_SIZE = 512; // standard Cat buffer size from vfs_shell_cmd
// job test releated
const pid_t INVALID_PID = -1;
const std::string PRE_INIT_DIR = ROOT_DIR + "preInitDir/";
const std::string INIT_DIR = PRE_INIT_DIR + "initDir";
const std::string POST_INIT_DIR = INIT_DIR + "postInitDir";
......
......@@ -25,6 +25,7 @@ if (defined(ohos_lite)) {
deps = [ "//base/startup/init_lite/services/log:init_log" ]
if (ohos_kernel_type == "linux") {
defines = [ "LINUX_WATCHDOG" ]
defines += [ "_GNU_SOURCE" ]
}
}
} else {
......@@ -37,6 +38,7 @@ if (defined(ohos_lite)) {
]
deps = [ "//base/startup/init_lite/services/log:init_log" ]
defines = [ "LINUX_WATCHDOG" ]
defines += [ "_GNU_SOURCE" ]
install_enable = true
part_name = "init"
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册