summaryrefslogtreecommitdiff
path: root/apt-pkg/packagemanager.h
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2015-07-24 17:34:30 +0200
committerMichael Vogt <mvo@ubuntu.com>2015-07-24 17:34:30 +0200
commit3b216cf6b6e082b7de4dfece65601a96d269d529 (patch)
treeda4f87625817bc1d1ec589291d331528e55ccbd6 /apt-pkg/packagemanager.h
parent439b024abe8fd6b8227a8b2869aab65a1186cfda (diff)
updated for the gcc5 transition
Diffstat (limited to 'apt-pkg/packagemanager.h')
-rw-r--r--apt-pkg/packagemanager.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/apt-pkg/packagemanager.h b/apt-pkg/packagemanager.h
index d72790b6e..34b4b529f 100644
--- a/apt-pkg/packagemanager.h
+++ b/apt-pkg/packagemanager.h
@@ -45,6 +45,12 @@ class pkgSourceList;
class pkgOrderList;
class pkgRecords;
+namespace APT {
+ namespace Progress {
+ class PackageManager;
+ class PackageManagerProgressFd;
+ }
+}
class pkgPackageManager : protected pkgCache::Namespace
{
@@ -93,6 +99,8 @@ class pkgPackageManager : protected pkgCache::Namespace
virtual bool Remove(PkgIterator /*Pkg*/,bool /*Purge*/=false) {return false;};
#if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR >= 13)
virtual bool Go(APT::Progress::PackageManager * /*progress*/) {return true;};
+ // compat
+ virtual bool Go(int /*statusFd*/=-1) {return true;};
#else
virtual bool Go(int /*statusFd*/=-1) {return true;};
#endif