diff --git a/components/libc/compilers/common/include/sys/signal.h b/components/libc/compilers/common/include/sys/signal.h index 6e06c8ba14c2a76674cd367b9ab9290c7c668fe5..8e67ae9ae147328451a0209039c1b253e29f090c 100644 --- a/components/libc/compilers/common/include/sys/signal.h +++ b/components/libc/compilers/common/include/sys/signal.h @@ -17,7 +17,17 @@ extern "C" { #endif /* __cplusplus */ #ifdef RT_USING_MUSLLIBC +/* this is require for musl */ +#ifndef _POSIX_SOURCE +#define _POSIX_SOURCE #include +/* limit influenced of _POSIX_SOURCE */ +#undef _POSIX_SOURCE + +#else /* ndef _POSIX_SOURCE */ +#include +#endif + #else #include