未验证 提交 95130a90 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #4117 from mysterywolf/time1

[bug][keil][libc]修复开启pthread功能后keil报错的问题
......@@ -68,4 +68,6 @@
int isatty (int fd);
char * ttyname (int desc);
unsigned int sleep(unsigned int seconds);
#endif /* _SYS_UNISTD_H */
......@@ -36,6 +36,13 @@ struct timeval {
};
#endif /* _TIMEVAL_DEFINED */
#ifndef _TIMESPEC
#define _TIMESPEC
struct timespec {
time_t tv_sec; /* seconds */
long tv_nsec; /* and nanoseconds */
};
#endif
struct timezone {
int tz_minuteswest; /* minutes west of Greenwich */
......
......@@ -40,4 +40,6 @@
int isatty (int fd);
char * ttyname (int desc);
unsigned int sleep(unsigned int seconds);
#endif /* _SYS_UNISTD_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册