--- a/src/tvheadend/entity/Event.h
+++ b/src/tvheadend/entity/Event.h
@@ -13,6 +13,7 @@
#include <map>
#include <string>
#include <vector>
+#include <ctime>
namespace tvheadend
{