summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2020-12-17 11:39:51 +0800
committerGitHub <[email protected]>2020-12-17 11:39:51 +0800
commit932bbc29c63b7375bc46837b99ae6fda117a9ba0 (patch)
tree98c0003bd99f85a1bfa25aefa15d625507e15df1 /components/libc/compilers/common
parent59d964aec6d6ac142680a5f27e5774ba6ef46271 (diff)
parentab754255407c2af40d6cea61dae1a314947d0886 (diff)
Merge pull request #4171 from mysterywolf/master
[emergency][posix] 实现usleep函数
Diffstat (limited to 'components/libc/compilers/common')
-rw-r--r--components/libc/compilers/common/sys/time.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h
index 952dbf32a5..28a977c1f9 100644
--- a/components/libc/compilers/common/sys/time.h
+++ b/components/libc/compilers/common/sys/time.h
@@ -36,8 +36,7 @@ struct timeval {
};
#endif /* _TIMEVAL_DEFINED */
-#ifndef _TIMESPEC
-#define _TIMESPEC
+#if !defined __GNUC__ && !defined __ICCARM__
struct timespec {
time_t tv_sec; /* seconds */
long tv_nsec; /* and nanoseconds */