summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/sys
diff options
context:
space:
mode:
authormysterywolf <[email protected]>2020-12-16 16:05:43 +0800
committermysterywolf <[email protected]>2020-12-16 16:05:43 +0800
commite5b10628ee001543c6ee8d458b1dde5d4941953c (patch)
tree9114119cc42917866bbcc5512f8da538ffa45d6f /components/libc/compilers/common/sys
parent9d004a2892394436e3a07a5dfb3e0fa9e8076433 (diff)
update
Diffstat (limited to 'components/libc/compilers/common/sys')
-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..06add3ba91 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
+#ifndef __GNUC__
struct timespec {
time_t tv_sec; /* seconds */
long tv_nsec; /* and nanoseconds */