[libc][time][bug] 修复ARM6报错的问题

This commit is contained in:
Meco Man 2021-03-09 17:51:35 +08:00
parent ce86058201
commit 09c5420d21

View File

@ -38,7 +38,7 @@ struct timeval {
}; };
#endif /* _TIMEVAL_DEFINED */ #endif /* _TIMEVAL_DEFINED */
#if !defined __GNUC__ && !defined __ICCARM__ #if !(defined(__GNUC__) && !defined(__ARMCC_VERSION)) && !defined (__ICCARM__)
struct timespec { struct timespec {
time_t tv_sec; /* seconds */ time_t tv_sec; /* seconds */
long tv_nsec; /* and nanoseconds */ long tv_nsec; /* and nanoseconds */