summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/progress.cc1
-rw-r--r--python/progress.h6
2 files changed, 1 insertions, 6 deletions
diff --git a/python/progress.cc b/python/progress.cc
index cbb49671..94debe40 100644
--- a/python/progress.cc
+++ b/python/progress.cc
@@ -13,6 +13,7 @@
#include <utility>
#include <apt-pkg/acquire-item.h>
#include <apt-pkg/acquire-worker.h>
+#include "generic.h"
#include "progress.h"
// generic
diff --git a/python/progress.h b/python/progress.h
index 659eb113..29243bfc 100644
--- a/python/progress.h
+++ b/python/progress.h
@@ -15,12 +15,6 @@
#include <apt-pkg/cdrom.h>
#include <Python.h>
-/* Python 2.4 compatibility */
-#if (PY_VERSION_HEX < 0x02050000)
-typedef int Py_ssize_t;
-#endif
-
-
/* PyCbObj_BEGIN_ALLOW_THREADS and PyCbObj_END_ALLOW_THREADS are sligthly
* modified versions of Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS.
* Instead of storing the thread state in a function-local variable these