Sfoglia il codice sorgente

* make apt build with g++ 4.3

Michael Vogt 19 anni fa
parent
commit
4f333a8bea

+ 1 - 1
apt-inst/filelist.h

@@ -29,7 +29,7 @@
 #define PKGLIB_FILELIST_H
 
 
-
+#include <cstring>
 #include <apt-pkg/mmap.h>
 
 class pkgFLCache

+ 3 - 1
apt-pkg/contrib/error.cc

@@ -19,10 +19,12 @@
 #include <iostream>
 #include <errno.h>
 #include <stdio.h>
-#include <string>
 #include <stdarg.h>
 #include <unistd.h>
 
+#include <string>
+#include <cstring>
+
 #include "config.h"
    									/*}}}*/
 

+ 2 - 0
apt-pkg/contrib/fileutl.cc

@@ -22,6 +22,8 @@
 #include <apti18n.h>
 
 #include <cstdlib>
+#include <cstring>
+
 #include <iostream>
 #include <unistd.h>
 #include <fcntl.h>

+ 1 - 0
apt-pkg/contrib/md5.cc

@@ -44,6 +44,7 @@
 #include <inttypes.h>
 #include <config.h>
 #include <system.h>
+
 									/*}}}*/
 
 // byteSwap - Swap bytes in a buffer					/*{{{*/

+ 1 - 0
apt-pkg/contrib/md5.h

@@ -25,6 +25,7 @@
 
 
 #include <string>
+#include <cstring>
 #include <algorithm>
 #include <stdint.h>
 

+ 2 - 0
apt-pkg/contrib/mmap.cc

@@ -31,6 +31,8 @@
 #include <sys/stat.h>
 #include <unistd.h>
 #include <fcntl.h>
+
+#include <cstring>
    									/*}}}*/
 
 // MMap::MMap - Constructor						/*{{{*/

+ 1 - 0
apt-pkg/contrib/progress.cc

@@ -16,6 +16,7 @@
 
 #include <iostream>
 #include <stdio.h>
+#include <cstring>
 									/*}}}*/
 
 using namespace std;

+ 1 - 0
apt-pkg/contrib/sha1.h

@@ -15,6 +15,7 @@
 #define APTPKG_SHA1_H
 
 #include <string>
+#include <cstring>
 #include <algorithm>
 
 using std::string;

+ 1 - 0
apt-pkg/contrib/sha256.h

@@ -15,6 +15,7 @@
 #define APTPKG_SHA256_H
 
 #include <string>
+#include <cstring>
 #include <algorithm>
 
 using std::string;

+ 1 - 0
apt-pkg/indexfile.cc

@@ -13,6 +13,7 @@
 #include <apt-pkg/error.h>
 
 #include <clocale>
+#include <cstring>
 									/*}}}*/
 
 // Global list of Item supported

+ 1 - 0
apt-pkg/pkgsystem.cc

@@ -13,6 +13,7 @@
 #include <apt-pkg/pkgsystem.h>
 #include <apt-pkg/policy.h>
 #include <cassert>
+#include <cstring>
 									/*}}}*/
 
 pkgSystem *_system = 0;

+ 1 - 0
debian/changelog

@@ -24,6 +24,7 @@ apt (0.7.7) UNRELEASED; urgency=low
   * apt-pkg/acquire.cc:
     - increase MaxPipeDepth for the internal worker<->method
       communication to 1000 for the debtorrent backend
+  * make apt build with g++ 4.3
 
   [ Ian Jackson ]
   * dpkg-triggers: Deal properly with new package states.

+ 1 - 0
ftparchive/writer.cc

@@ -28,6 +28,7 @@
 #include <ftw.h>
 #include <fnmatch.h>
 #include <iostream>
+#include <memory>
     
 #include "cachedb.h"
 #include "apt-ftparchive.h"