diff options
| author | liukangcc <[email protected]> | 2021-09-03 11:38:48 +0800 |
|---|---|---|
| committer | liukangcc <[email protected]> | 2021-09-16 09:51:33 +0800 |
| commit | a3541b2a243bdf1cc49029b696b217ce752199c7 (patch) | |
| tree | ed7bd0398a322fb597938f3fb476909a7cc66606 /components/libc/compilers/common/sys | |
| parent | dca7dcb42a44249abbe6c36ce2a69355e60d1f79 (diff) | |
[update] support armclang and c++11.
Diffstat (limited to 'components/libc/compilers/common/sys')
| -rw-r--r-- | components/libc/compilers/common/sys/time.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h index c2320429e0..95605d47c7 100644 --- a/components/libc/compilers/common/sys/time.h +++ b/components/libc/compilers/common/sys/time.h @@ -48,9 +48,10 @@ rt_int8_t rt_tz_is_dst(void); #ifndef _TIMEVAL_DEFINED #define _TIMEVAL_DEFINED #if !(defined(_WIN32)) -struct timeval { - long tv_sec; /* seconds */ - long tv_usec; /* and microseconds */ +struct timeval +{ + time_t tv_sec; /* seconds */ + suseconds_t tv_usec; /* and microseconds */ }; #endif #endif /* _TIMEVAL_DEFINED */ |
