--- libtorrent-0.12.4.orig/src/protocol/extensions.cc	2008-08-26 22:15:15.000000000 +0200
+++ libtorrent-0.12.4/src/protocol/extensions.cc	2009-08-28 17:38:49.879440210 +0200
@@ -37,6 +37,7 @@
 #include "config.h"
 
 #include <limits>
+#include <cstdio>
 #include <sstream>
 
 #include "download/available_list.h"
