Explorar el Código

compat: Fix potential clock_gettime prototype incompatibility

Hugo Beauzée-Luyssen hace 7 años
padre
commit
abc1379cb5
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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