--- a/src/qtgui/advshist.h
+++ b/src/qtgui/advshist.h
@@ -16,6 +16,7 @@
  */
 #ifndef _ADVSHIST_H_INCLUDED_
 #define _ADVSHIST_H_INCLUDED_
+#include "autoconfig.h"
 
 #include <vector>