diff --git a/opm/core/transport/implicit/TransportSolverTwophaseImplicit.cpp b/opm/core/transport/implicit/TransportSolverTwophaseImplicit.cpp
index 7ca58932..c43aeb2c 100644
--- a/opm/core/transport/implicit/TransportSolverTwophaseImplicit.cpp
+++ b/opm/core/transport/implicit/TransportSolverTwophaseImplicit.cpp
@@ -26,6 +26,9 @@
along with OPM. If not, see .
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif // HAVE_CONFIG_H
#include
#include