diff -ru multiget.orig/src/batch.cpp multiget/src/batch.cpp --- multiget.orig/src/batch.cpp 2009-03-05 14:03:18.000000000 +0000 +++ multiget/src/batch.cpp 2009-03-05 14:03:36.000000000 +0000 @@ -25,6 +25,7 @@ #include "batch.h" #include "common.h" #include <iostream> +#include <cstdio> CBatch::CBatch( std::string str ) { diff -ru multiget.orig/src/mgftpbase.cpp multiget/src/mgftpbase.cpp --- multiget.orig/src/mgftpbase.cpp 2009-03-05 14:03:18.000000000 +0000 +++ multiget/src/mgftpbase.cpp 2009-03-05 14:12:25.000000000 +0000 @@ -25,6 +25,7 @@ #ifdef WIN32 #include <winsock2.h> #endif +#include <cstdio> #include "mgftpbase.h" /* the UTF-8 Chinese char will break vc6 compile diff -ru multiget.orig/src/mghttpbase.cpp multiget/src/mghttpbase.cpp --- multiget.orig/src/mghttpbase.cpp 2009-03-05 14:03:18.000000000 +0000 +++ multiget/src/mghttpbase.cpp 2009-03-05 14:31:45.000000000 +0000 @@ -48,6 +48,7 @@ #include "mghttpbase.h" #include <iostream> +#include <cstdio> using namespace std;