--- src/CLucene/util/bufferedstream.h~
+++ src/CLucene/util/bufferedstream.h
@@ -29,6 +29,7 @@
 #include "streambase.h"
 #include "inputstreambuffer.h"
 #include <cassert>
+#include <stdio.h>
 
 namespace jstreams {