From b9c683f09b189746fed93d5dba6a80043c932be5 Mon Sep 17 00:00:00 2001 From: lice Date: Wed, 5 Jul 2023 17:40:03 +0800 Subject: [PATCH] fix compile error fix compile error when use_jemalloc_recycle_func open Issuse:I7IQ2Z Signed-off-by: lice --- porting/linux/user/include/signal.h | 2 +- porting/linux/user/src/hook/musl_preinit.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/porting/linux/user/include/signal.h b/porting/linux/user/include/signal.h index a7d9452e..9d088a80 100644 --- a/porting/linux/user/include/signal.h +++ b/porting/linux/user/include/signal.h @@ -218,7 +218,7 @@ int __libc_current_sigrtmax(void); #define MUSL_SIGNAL_JSHEAP (SIGRTMIN + 4) #define MUSL_SIGNAL_JSHEAP_PRIV (SIGRTMIN + 5) #ifdef USE_JEMALLOC_RECYCLE_FUNC -#define MUSL_SIGNAL_RECYCLE_JEMALLOC(SIGRTMIN + 8) +#define MUSL_SIGNAL_RECYCLE_JEMALLOC (SIGRTMIN + 8) #endif #define MUSL_SIGNAL_MEMCHECK (SIGRTMIN + 9) diff --git a/porting/linux/user/src/hook/musl_preinit.c b/porting/linux/user/src/hook/musl_preinit.c index 0b69f393..2c2f9a55 100644 --- a/porting/linux/user/src/hook/musl_preinit.c +++ b/porting/linux/user/src/hook/musl_preinit.c @@ -290,7 +290,6 @@ static void init_jemalloc_recycle_handler() action.sa_flags = SA_SIGINFO | SA_RESTART; action.sa_restorer = NULL; sigaction(MUSL_SIGNAL_RECYCLE_JEMALLOC, &action, NULL); - } #endif -- GitLab