summaryrefslogtreecommitdiff
path: root/components/libc
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-03-09 17:51:35 +0800
committerMeco Man <[email protected]>2021-03-09 17:51:35 +0800
commit09c5420d210b534f4fdc4dc867b043f7ba649678 (patch)
tree3f01be98fecde3908e41090b3e244a923d264656 /components/libc
parentce86058201432e865b8d7c4096b3675642a43a42 (diff)
[libc][time][bug] 修复ARM6报错的问题
Diffstat (limited to 'components/libc')
-rw-r--r--components/libc/compilers/common/sys/time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h
index e4d60d2d11..5bf5bc5e92 100644
--- a/components/libc/compilers/common/sys/time.h
+++ b/components/libc/compilers/common/sys/time.h
@@ -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 */