4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-21 01:47:09 +08:00

Merge pull request #4433 from mysterywolf/clang

[libc][time][bug] 修复ARM6报错的问题
This commit is contained in:
Bernard Xiong 2021-03-09 21:00:15 +08:00 committed by GitHub
commit d9b8984398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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