diff --git a/include/compiler.h b/include/compiler.h
index 0734ed494274558a0656925220d7e4861da7231e..9afc11be1942d6b9e2c4ba19ed059fd288447685 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -48,6 +48,7 @@
 # include <machine/endian.h>
 typedef unsigned long ulong;
 #endif
+#include <time.h>
 
 typedef uint8_t __u8;
 typedef uint16_t __u16;