aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-13 16:37:43 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-13 16:37:43 +0000
commit355ddca5ff9694ce8219372b410d2572d9f4485b (patch)
tree22c514f93860fbe1f2af65b4916f62ce5f136d52
parente78694173c904b7a03d3dab8cf686a4d8f9380d4 (diff)
downloadperl-URPM-355ddca5ff9694ce8219372b410d2572d9f4485b.tar
perl-URPM-355ddca5ff9694ce8219372b410d2572d9f4485b.tar.gz
perl-URPM-355ddca5ff9694ce8219372b410d2572d9f4485b.tar.bz2
perl-URPM-355ddca5ff9694ce8219372b410d2572d9f4485b.tar.xz
perl-URPM-355ddca5ff9694ce8219372b410d2572d9f4485b.zip
Fix for undocumented ABI changes in rpm 4.4.5 callback interface
-rw-r--r--URPM.xs11
1 files changed, 9 insertions, 2 deletions
diff --git a/URPM.xs b/URPM.xs
index 5429256..61944de 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1258,10 +1258,17 @@ read_config_files(int force) {
}
}
+#ifdef RPM_CALLBACK_LONGLONG
+/* That's for rpm >= 4.4.5 */
+# define RPM_CALLBACK_AMOUNT_TYPE unsigned long long
+#else
+# define RPM_CALLBACK_AMOUNT_TYPE unsigned long
+#endif
+
static void *rpmRunTransactions_callback(const void *h,
const rpmCallbackType what,
- const unsigned long amount,
- const unsigned long total,
+ const RPM_CALLBACK_AMOUNT_TYPE amount,
+ const RPM_CALLBACK_AMOUNT_TYPE total,
const void * pkgKey,
void * data) {
static struct timeval tprev;