diff --git a/AMDiS/src/parallel/ZoltanPartitioner.cc b/AMDiS/src/parallel/ZoltanPartitioner.cc
index e652e69aaf36daed3a1e30c2c0f62df198baa6c8..6053565b9e8030ee779f54eb45f7b5e01b435627 100644
--- a/AMDiS/src/parallel/ZoltanPartitioner.cc
+++ b/AMDiS/src/parallel/ZoltanPartitioner.cc
@@ -9,6 +9,7 @@
 //
 // See also license.opensource.txt in the distribution.
 
+#ifdef HAVE_ZOLTAN
 
 #include <boost/lexical_cast.hpp>
 #include "parallel/ZoltanPartitioner.h"
@@ -535,3 +536,5 @@ namespace AMDiS {
 
 
 }
+
+#endif