diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-03-13 16:37:43 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-03-13 16:37:43 +0000 |
commit | 355ddca5ff9694ce8219372b410d2572d9f4485b (patch) | |
tree | 22c514f93860fbe1f2af65b4916f62ce5f136d52 | |
parent | e78694173c904b7a03d3dab8cf686a4d8f9380d4 (diff) | |
download | perl-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.xs | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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; |