瀏覽代碼

* apt-pkg/contrib/weakptr.h:
- fix compile error with g++ 4.6

Michael Vogt 15 年之前
父節點
當前提交
64553ed102
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 1 0
      apt-pkg/contrib/weakptr.h
  2. 2 0
      debian/changelog

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

@@ -21,6 +21,7 @@
 #ifndef WEAK_POINTER_H
 #ifndef WEAK_POINTER_H
 #define WEAK_POINTER_H
 #define WEAK_POINTER_H
 
 
+#include <cstdlib>
 #include <set>
 #include <set>
 /**
 /**
  * Class for objects providing support for weak pointers.
  * Class for objects providing support for weak pointers.

+ 2 - 0
debian/changelog

@@ -80,6 +80,8 @@ apt (0.8.7) unstable; urgency=low
   * apt-pkg/deb/debsystem.cc:
   * apt-pkg/deb/debsystem.cc:
     - fix issues with dir::state::status and dir::state::extended_states
     - fix issues with dir::state::status and dir::state::extended_states
       when alternative rootdirs are used
       when alternative rootdirs are used
+  * apt-pkg/contrib/weakptr.h:
+    - fix compile error with g++ 4.6
 
 
   [ Martin Pitt ]
   [ Martin Pitt ]
   * apt-pkg/deb/debindexfile.cc:
   * apt-pkg/deb/debindexfile.cc: