diff --git a/examples/shallowwaterfriction/doc/main.md b/examples/shallowwaterfriction/doc/main.md
index 52ad48457c0364d705e3415ad60f0c679285db99..e6e703484b2d84e2af15aaf24e09c1edd3b4a8ab 100644
--- a/examples/shallowwaterfriction/doc/main.md
+++ b/examples/shallowwaterfriction/doc/main.md
@@ -49,6 +49,7 @@ and the assembler for the linear systems arising from finite volume discretizati
 (box-scheme, tpfa-approximation, mpfa-approximation).
 
 ```cpp
+#include <dumux/linear/linearsolvertraits.hh>
 #include <dumux/linear/amgbackend.hh>
 #include <dumux/nonlinear/newtonsolver.hh>
 #include <dumux/assembly/fvassembler.hh>
diff --git a/examples/shallowwaterfriction/main.cc b/examples/shallowwaterfriction/main.cc
index eba1b871dafe52c578f9f6acda27549ba589c4d4..a9f02dba09d3ea003248435891cb0b7ef973a321 100644
--- a/examples/shallowwaterfriction/main.cc
+++ b/examples/shallowwaterfriction/main.cc
@@ -43,6 +43,7 @@
 // The following files contains the available linear solver backends, the non linear Newton Solver
 // and the assembler for the linear systems arising from finite volume discretizations
 // (box-scheme, tpfa-approximation, mpfa-approximation).
+#include <dumux/linear/linearsolvertraits.hh>
 #include <dumux/linear/amgbackend.hh>
 #include <dumux/nonlinear/newtonsolver.hh>
 #include <dumux/assembly/fvassembler.hh>