Преглед на файлове

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