aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2008-03-01 12:29:10 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2008-03-01 12:29:10 +0000
commita2290efbb395b35330377e0a9acef9b92dab9aeb (patch)
tree7f18d5786f51c1e0a76d10121e0f9f1b3216614e /URPM.xs
parente30262cc17768fcad84c48698666d75e17726071 (diff)
downloadperl-URPM-a2290efbb395b35330377e0a9acef9b92dab9aeb.tar
perl-URPM-a2290efbb395b35330377e0a9acef9b92dab9aeb.tar.gz
perl-URPM-a2290efbb395b35330377e0a9acef9b92dab9aeb.tar.bz2
perl-URPM-a2290efbb395b35330377e0a9acef9b92dab9aeb.tar.xz
perl-URPM-a2290efbb395b35330377e0a9acef9b92dab9aeb.zip
do better "detection" of callback size without having to define it in Makefile (inspired by apt)
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs12
1 files changed, 5 insertions, 7 deletions
diff --git a/URPM.xs b/URPM.xs
index d9b5823..8f69ce2 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1322,18 +1322,16 @@ ts_nosignature(rpmts ts) {
rpmtsSetVSFlags(ts, _RPMVSF_NODIGESTS | _RPMVSF_NOSIGNATURES);
}
-
-#ifdef RPM_CALLBACK_LONGLONG
-/* That's for rpm >= 4.4.5 */
-# define RPM_CALLBACK_AMOUNT_TYPE unsigned long long
+#if HAVE_RPM_RPMCB_H
+typedef unsigned long long rpmCallbackSize_t;
#else
-# define RPM_CALLBACK_AMOUNT_TYPE unsigned long
+typedef unsigned long rpmCallbackSize_t;
#endif
static void *rpmRunTransactions_callback(const void *h,
const rpmCallbackType what,
- const RPM_CALLBACK_AMOUNT_TYPE amount,
- const RPM_CALLBACK_AMOUNT_TYPE total,
+ const rpmCallbackSize_t amount,
+ const rpmCallbackSize_t total,
fnpyKey pkgKey,
rpmCallbackData data) {
static struct timeval tprev;