diff options
Diffstat (limited to 'rpmdb/legacy.c')
-rw-r--r-- | rpmdb/legacy.c | 2 |
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); |