Browse Source

[libc] redirecting header sys/signal to signal

wangxiaoyao 2 years ago
parent
commit
6a25a68be6
1 changed files with 6 additions and 0 deletions
  1. 6 0
      components/libc/compilers/common/include/sys/signal.h

+ 6 - 0
components/libc/compilers/common/include/sys/signal.h

@@ -16,6 +16,10 @@
 extern "C" {
 #endif /* __cplusplus */
 
+#ifdef RT_USING_MUSLLIBC
+#include <signal.h>
+#else
+
 #include <stdint.h>
 #include <sys/types.h>
 
@@ -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 */