Browse Source

add <sys/types.h>

Meco Man 4 years ago
parent
commit
e33e7822d7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      components/libc/compilers/common/sys/time.h

+ 1 - 0
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