File multiget-1.20-fix_missing_includes2.patch of Package multiget
diff -ur src.orig/batch.cpp src/batch.cpp
--- src.orig/batch.cpp 2007-01-13 14:09:02.000000000 +0300
+++ src/batch.cpp 2009-11-03 00:06:31.000000000 +0300
@@ -25,6 +25,8 @@
#include "batch.h"
#include "common.h"
#include <iostream>
+#include <cstdlib>
+#include <stdio.h>
CBatch::CBatch( std::string str )
{
diff -ur src.orig/common.cpp src/common.cpp
--- src.orig/common.cpp 2007-01-13 14:09:02.000000000 +0300
+++ src/common.cpp 2009-11-03 00:05:38.000000000 +0300
@@ -28,6 +28,7 @@
#include <pthread.h>
+#include <stdlib.h>
#ifdef WIN32
#include <windows.h>
Только в src: mgapp.cpp.orig
diff -ur src.orig/mgftpbase.cpp src/mgftpbase.cpp
--- src.orig/mgftpbase.cpp 2007-01-13 14:09:02.000000000 +0300
+++ src/mgftpbase.cpp 2009-11-03 00:11:58.000000000 +0300
@@ -22,6 +22,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include <cstdlib>
+#include <stdio.h>
+
#ifdef WIN32
#include <winsock2.h>
#endif
diff -ur src.orig/mghttpbase.cpp src/mghttpbase.cpp
--- src.orig/mghttpbase.cpp 2007-01-13 14:09:02.000000000 +0300
+++ src/mghttpbase.cpp 2009-11-03 00:15:02.000000000 +0300
@@ -48,6 +48,7 @@
#include "mghttpbase.h"
#include <iostream>
+#include <stdio.h>
using namespace std;
diff -ur src.orig/mgurlparser.cpp src/mgurlparser.cpp
--- src.orig/mgurlparser.cpp 2007-01-29 06:51:58.000000000 +0300
+++ src/mgurlparser.cpp 2009-11-03 00:05:38.000000000 +0300
@@ -26,6 +26,10 @@
#include "mgurlparser.h"
#include "common.h"
#include <iostream>
+#include <strings.h>
+#include <cstring>
+#include <cstdlib>
+
extern std::string gDefFtpPass;
using namespace std;