소스 검색

add <sys/types.h>

Meco Man 4 년 전
부모
커밋
e33e7822d7
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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