Bläddra i källkod

修正不定义RT_USING_SIGNAL时的编译问题

shaojinchun 5 år sedan
förälder
incheckning
711c9f867b
1 ändrade filer med 7 tillägg och 0 borttagningar
  1. 7 0
      include/rtdef.h

+ 7 - 0
include/rtdef.h

@@ -496,6 +496,13 @@ typedef void (*rt_sighandler_t)(int signo);
 typedef siginfo_t rt_siginfo_t;
 typedef siginfo_t rt_siginfo_t;
 
 
 #define RT_SIG_MAX          32
 #define RT_SIG_MAX          32
+
+#else
+
+#ifdef RT_USING_LWP
+#include <libc/libc_signal.h>
+#endif
+
 #endif
 #endif
 /**@}*/
 /**@}*/