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

This commit is contained in:
mysterywolf 2020-09-05 16:59:53 +08:00
parent 6fa049ee3d
commit d5d8b345f4
2 changed files with 4 additions and 2 deletions

View File

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

View File

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