فهرست منبع

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

shaojinchun 5 سال پیش
والد
کامیت
711c9f867b
1فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  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;
 
 #define RT_SIG_MAX          32
+
+#else
+
+#ifdef RT_USING_LWP
+#include <libc/libc_signal.h>
+#endif
+
 #endif
 /**@}*/