--- a/src/cpp/session/modules/SessionHistoryArchive.hpp
+++ b/src/cpp/session/modules/SessionHistoryArchive.hpp
@@ -18,6 +18,7 @@
#include <string>
#include <vector>
+#include <ctime>
#include <boost/utility.hpp>