提交 41fa081b 编写于 作者: X xionglei6

init: fix L1 compile warning

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 d2505963
......@@ -81,6 +81,7 @@ if (defined(ohos_lite)) {
}
if (ohos_kernel_type == "linux") {
defines += [ "NEED_EXEC_RCS_LINUX" ]
defines += [ "_GNU_SOURCE" ]
ldflags += [
"-lm",
"-lpthread",
......
......@@ -60,7 +60,7 @@ int SetAmbientCapability(int cap)
return 0;
}
#ifdef __LINUX__
#if (defined __LINUX__) && (defined NEED_EXEC_RCS_LINUX)
static pid_t g_waitPid = -1;
static sem_t *g_waitSem = NULL;
static void SignalRegWaitSem(pid_t waitPid, sem_t *waitSem)
......
......@@ -20,6 +20,7 @@
#include <fcntl.h>
#include <netinet/in.h>
#include <stddef.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
......
......@@ -89,6 +89,8 @@ ohos_shared_library("param_client") {
]
defines = [ "INIT_AGENT" ]
defines += [ "_GNU_SOURCE" ]
if (param_security == "selinux") {
sources += [ "adapter/param_selinux.c" ]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册