Przeglądaj źródła

compat: Fix potential clock_gettime prototype incompatibility

Hugo Beauzée-Luyssen 7 lat temu
rodzic
commit
abc1379cb5
1 zmienionych plików z 2 dodań i 0 usunięć
  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