提交 846e7299 编写于 作者: D dhy308

Fix linux compile error.

Issue: I6AEEI
Test: Build & Boot Devices
Signed-off-by: Ndhy308 <tony.gan@huawei.com>
上级 83f800ab
......@@ -4,13 +4,16 @@
#include <stddef.h>
#include <hilog_adapter.h>
#include <string.h>
#ifdef OHOS_ENABLE_PARAMETER
#include "sys_param.h"
#endif
extern void intercept_sigprocmask(int how, sigset_t *restrict set);
static const char *param_name = "musl.sigchain.procmask";
bool get_sigchain_mask_enable()
{
#ifdef OHOS_ENABLE_PARAMETER
static CachedHandle musl_log_Handle = NULL;
if (musl_log_Handle == NULL) {
musl_log_Handle = CachedParameterCreate(param_name, "false");
......@@ -22,6 +25,7 @@ bool get_sigchain_mask_enable()
return true;
}
}
#endif
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册