소스 검색

compat: Fix potential clock_gettime prototype incompatibility

Hugo Beauzée-Luyssen 8 년 전
부모
커밋
abc1379cb5
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      compat/compat.h

+ 2 - 0
compat/compat.h

@@ -48,6 +48,8 @@ enum {
 };
 #endif
 #if !defined HAVE_CLOCK_GETTIME
+// We need a proper struct timespec definition
+#include <time.h>
 int clock_gettime(clockid_t clk_id, struct timespec *tp);
 #endif