diff --git a/Solver/linearSystemPETSc.h b/Solver/linearSystemPETSc.h
index 5de035d36433e8c126810b65b0a73089fda83a95..b82aa17d17bd2cf5cab2a63c6c1f8ce72260ded9 100644
--- a/Solver/linearSystemPETSc.h
+++ b/Solver/linearSystemPETSc.h
@@ -43,6 +43,7 @@
 #if defined(HAVE_PETSC)
 #ifndef SWIG
 #include "petsc.h"
+#include "petscksp.h"
 #else
 typedef struct _p_Mat* Mat;
 typedef struct _p_Vec* Vec;