diff --git a/dune/solvers/test/common.hh b/dune/solvers/test/common.hh
index e0c3208428cd7dd97da718e3580cb364a37c6477..11bb9ea8d92c75fb31474a5f93558ae79c2b9eed 100644
--- a/dune/solvers/test/common.hh
+++ b/dune/solvers/test/common.hh
@@ -11,6 +11,8 @@
 
 #include <dune/localfunctions/lagrange/pqkfactory.hh>
 
+#include <dune/grid/common/gridfactory.hh>
+
 #if HAVE_UG
 #include <dune/grid/uggrid.hh>
 #endif