summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-02-12 02:58:44 +0800
committerMeco Man <[email protected]>2021-02-12 02:58:44 +0800
commite33e7822d7a7aaa027e511f59c5533664a02f31e (patch)
treee0e2464e213126c8d734c183b01373e089414df8 /components
parent28e8e6da62f878f3baa6fbddc4dcdb8744497bf7 (diff)
add <sys/types.h>
Diffstat (limited to 'components')
-rw-r--r--components/libc/compilers/common/sys/time.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h
index 34ca9427b9..4c522a524a 100644
--- a/components/libc/compilers/common/sys/time.h
+++ b/components/libc/compilers/common/sys/time.h
@@ -55,6 +55,7 @@ int gettimeofday(struct timeval *tv, struct timezone *tz);
int settimeofday(const struct timeval *tv, const struct timezone *tz);
#ifdef RT_USING_PTHREADS
+#include <sys/types.h>
/* posix clock and timer */
#define MILLISECOND_PER_SECOND 1000UL
#define MICROSECOND_PER_SECOND 1000000UL