diff --git a/Modules/IO/KMZWriter/include/otbKmzProductWriter.h b/Modules/IO/KMZWriter/include/otbKmzProductWriter.h
index 74c1246f68b1e773066977643497f58a2353c713..e0f54fbb502a0cae8dd53e2865e66f3dcb88d3c9 100644
--- a/Modules/IO/KMZWriter/include/otbKmzProductWriter.h
+++ b/Modules/IO/KMZWriter/include/otbKmzProductWriter.h
@@ -18,6 +18,8 @@
 #ifndef __otbKmzProductWriter_h
 #define __otbKmzProductWriter_h
 
+#include <fstream>
+
 #include "itkObjectFactory.h"
 
 //kmz creation