--- modules/traincascade/imagestorage.h.orig	2011-06-27 08:30:19.212006174 +0200
+++ modules/traincascade/imagestorage.h	2011-06-27 08:30:50.325671316 +0200
@@ -1,6 +1,7 @@
 #ifndef _OPENCV_IMAGESTORAGE_H_
 #define _OPENCV_IMAGESTORAGE_H_
 
+#include <cstdio>
 #include "highgui.h"
 
 using namespace cv;
