diff --git a/test/freeflow/navierstokes/sincos/main.cc b/test/freeflow/navierstokes/sincos/main.cc
index 12f0bc9facbf1da6b6931c34b5be5ae7f1202acf..1da94763ac4ee064852c287cc8d8ea7c374e9c7b 100644
--- a/test/freeflow/navierstokes/sincos/main.cc
+++ b/test/freeflow/navierstokes/sincos/main.cc
@@ -47,7 +47,7 @@
 #include <dumux/nonlinear/newtonsolver.hh>
 
 #include <dune/common/version.hh>
-#if DUNE_VERSION_NEWER_REV(DUNE_ISTL,2,7,1)
+#if DUNE_VERSION_GTE(DUNE_ISTL,2,7)
 #include <dumux/linear/istlsolverfactorybackend.hh>
 #endif