修复蓝区编译错误

Signed-off-by: jiangyuan0000 <jiangyuan29@huawei.com>
This commit is contained in:
jiangyuan0000 2022-06-30 09:42:22 +08:00
parent cb08c6176d
commit 72b817bf13
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,6 @@ ohos_source_set("libhidebug_source") {
part_name = "profiler"
include_dirs = [
"//utils/native/base/include",
"//third_party/musl/porting/linux/user/include",
"//developtools/profiler/hidebug/interfaces/native/innerkits/include",
]

View File

@ -24,7 +24,7 @@
#include <dlfcn.h>
#include <unistd.h>
#include <string>
#include <signal.h>
#include <csignal>
#include <parameter.h>
#include <sysparam_errno.h>
@ -43,6 +43,7 @@ const int MAX_PARA_LEN = 50;
const int MAX_PARA_CNT = 20;
const int PARAM_BUF_LEN = 128;
const int QUERYNAME_LEN = 80;
const int HOOK_SIGNAL = 36;
const char COLON_CHR = ':';
const char SLASH_CHR = '/';
const char * const LIBC_HOOK_PARAM = "libc.hook_mode";
@ -202,7 +203,7 @@ static int SetupMallocHookAtStartup(const char *thisName)
return 0;
}
HILOG_INFO(LOG_CORE, "malloc send hook signal.");
return raise(MUSL_SIGNAL_HOOK);
return raise(HOOK_SIGNAL);
}
} // namespace