未验证 提交 40b580b2 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1224 from armink/fix_minilibc_time

Fix minilibc time
......@@ -15,6 +15,8 @@ typedef int mode_t;
typedef unsigned long clockid_t;
typedef int pid_t;
typedef unsigned long clock_t; /* clock() */
#ifndef NULL
#define NULL (0)
#endif
......
......@@ -3,4 +3,14 @@
#include <sys/time.h>
time_t mktime(struct tm * const t);
char *asctime(const struct tm *timeptr);
char *ctime(const time_t *timep);
struct tm* localtime(const time_t* t);
char *asctime_r(const struct tm *t, char *buf);
struct tm *gmtime_r(const time_t *timep, struct tm *r);
struct tm* localtime_r(const time_t* t, struct tm* r);
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册