From 14d95f25f736587e23b5aa8a2302eb5f3b168df9 Mon Sep 17 00:00:00 2001 From: jbj Date: Tue, 4 Jun 2002 22:02:15 +0000 Subject: - use /etc/rpm/platform (if it exists), rather than uname(2), for arch. CVS patchset: 5464 CVS date: 2002/06/04 22:02:15 --- rpmdb/legacy.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rpmdb') diff --git a/rpmdb/legacy.c b/rpmdb/legacy.c index f90a2983d..d9e84e4d3 100644 --- a/rpmdb/legacy.c +++ b/rpmdb/legacy.c @@ -37,7 +37,9 @@ int domd5(const char * fn, unsigned char * digest, int asAscii) return 1; } +#ifdef MADV_SEQUENTIAL xx = madvise(mapped, st->st_size, MADV_SEQUENTIAL); +#endif ctx = rpmDigestInit(PGPHASHALGO_MD5, RPMDIGEST_NONE); xx = rpmDigestUpdate(ctx, mapped, st->st_size); -- cgit v1.2.3