--- a/src/Log.cxx
+++ b/src/Log.cxx
@@ -24,6 +24,7 @@
#include "config.h"
#include <cassert>
+#include <ctime>
#include <stdarg.h>
#include <stdio.h>