|
@@ -178,7 +178,9 @@ bin_checksum(const char *fname, int todo)
|
|
|
close(fd);
|
|
close(fd);
|
|
|
werr(ERR_BINSTAT);
|
|
werr(ERR_BINSTAT);
|
|
|
}
|
|
}
|
|
|
|
|
+#ifdef HAVE_MADVISE
|
|
|
madvise(map, size, MADV_SEQUENTIAL);
|
|
madvise(map, size, MADV_SEQUENTIAL);
|
|
|
|
|
+#endif
|
|
|
MD5_Update(&ctx, map, offset);
|
|
MD5_Update(&ctx, map, offset);
|
|
|
|
|
|
|
|
/* Hash everything after the packdata too */
|
|
/* Hash everything after the packdata too */
|