瀏覽代碼

compat: Fix potential clock_gettime prototype incompatibility

Hugo Beauzée-Luyssen 7 年之前
父節點
當前提交
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