Merge pull request #1224 from armink/fix_minilibc_time

Fix minilibc time
This commit is contained in:
Bernard Xiong 2018-02-16 22:53:02 +08:00 committed by GitHub
commit 40b580b223
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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