1
0
Эх сурвалжийг харах

修改libc_signal.h 该文件中不能用rt_数据类型,否则会引起编译器递归编译

mysterywolf 4 жил өмнө
parent
commit
d5d8b345f4

+ 1 - 0
components/libc/getline/posix_getline.h

@@ -14,6 +14,7 @@
 #define POSIX_GETLINE_H
 
 #include <stdio.h>
+#include <sys/types.h>
 
 ssize_t getdelim(char **lineptr, size_t *n, int delim, FILE *stream);
 ssize_t getline(char **lineptr, size_t *n, FILE *stream);

+ 3 - 2
include/libc/libc_signal.h

@@ -15,6 +15,7 @@
 extern "C" {
 #endif
 
+#include <stdint.h>
 #ifdef HAVE_CCONFIG_H
 #include <cconfig.h>
 #endif
@@ -46,8 +47,8 @@ struct sigevent
 #ifndef HAVE_SIGINFO
 struct siginfo
 {
-    rt_uint16_t si_signo;
-    rt_uint16_t si_code;
+    uint16_t si_signo;
+    uint16_t si_code;
 
     union sigval si_value;
 };