--- a/src/query/docseqdb.cpp
+++ b/src/query/docseqdb.cpp
@@ -16,6 +16,9 @@
  */
 #include <math.h>
 #include <time.h>
+
+#include <list>
+using std::list;
 
 #include "docseqdb.h"
 #include "rcldb.h"