diff --git a/src/core/CLucene/document/DateTools.h b/src/core/CLucene/document/DateTools.h
index 68220c6..4d69961 100644
--- a/src/core/CLucene/document/DateTools.h
+++ b/src/core/CLucene/document/DateTools.h
@@ -18,6 +18,8 @@
 # endif
 #endif
 
+#include <time.h>
+
 #ifdef _CL_HAVE_SYS_TIMEB_H
 # include <sys/timeb.h>
 #endif