diff --git a/components/libc/compilers/common/include/sys/signal.h b/components/libc/compilers/common/include/sys/signal.h index f2a21baed7..7cbf235c5c 100644 --- a/components/libc/compilers/common/include/sys/signal.h +++ b/components/libc/compilers/common/include/sys/signal.h @@ -16,6 +16,10 @@ extern "C" { #endif /* __cplusplus */ +#ifdef RT_USING_MUSLLIBC +#include +#else + #include #include @@ -229,6 +233,8 @@ int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact) #define SIG_IGN ((void (*)(int)) 1) #endif +#endif /* RT_USING_MUSLLIBC */ + #ifdef __cplusplus } #endif /* __cplusplus */