summaryrefslogtreecommitdiff
path: root/rpmdb
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-06-04 22:02:15 +0000
committerjbj <devnull@localhost>2002-06-04 22:02:15 +0000
commit14d95f25f736587e23b5aa8a2302eb5f3b168df9 (patch)
tree4c86b3411861d9df0bad3d830ba5a5ab52a59cf5 /rpmdb
parentdd50743445cb505bb67d5d43d566b51409b8df0e (diff)
downloadlibrpm-tizen-14d95f25f736587e23b5aa8a2302eb5f3b168df9.tar.gz
librpm-tizen-14d95f25f736587e23b5aa8a2302eb5f3b168df9.tar.bz2
librpm-tizen-14d95f25f736587e23b5aa8a2302eb5f3b168df9.zip
- use /etc/rpm/platform (if it exists), rather than uname(2), for arch.
CVS patchset: 5464 CVS date: 2002/06/04 22:02:15
Diffstat (limited to 'rpmdb')
-rw-r--r--rpmdb/legacy.c2
1 files changed, 2 insertions, 0 deletions
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);