summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt-pkg/contrib/weakptr.h1
-rw-r--r--debian/changelog2
2 files changed, 3 insertions, 0 deletions
diff --git a/apt-pkg/contrib/weakptr.h b/apt-pkg/contrib/weakptr.h
index 5158e393c..ed92eb3f9 100644
--- a/apt-pkg/contrib/weakptr.h
+++ b/apt-pkg/contrib/weakptr.h
@@ -21,6 +21,7 @@
#ifndef WEAK_POINTER_H
#define WEAK_POINTER_H
+#include <cstdlib>
#include <set>
/**
* Class for objects providing support for weak pointers.
diff --git a/debian/changelog b/debian/changelog
index 98c127143..cf56a384e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -80,6 +80,8 @@ apt (0.8.7) unstable; urgency=low
* apt-pkg/deb/debsystem.cc:
- fix issues with dir::state::status and dir::state::extended_states
when alternative rootdirs are used
+ * apt-pkg/contrib/weakptr.h:
+ - fix compile error with g++ 4.6
[ Martin Pitt ]
* apt-pkg/deb/debindexfile.cc: