diff options
Diffstat (limited to 'src/comm.c')
-rw-r--r-- | src/comm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/comm.c b/src/comm.c index ff42802cb..06b80b071 100644 --- a/src/comm.c +++ b/src/comm.c @@ -24,6 +24,7 @@ #include "system.h" #include "linebuffer.h" #include "error.h" +#include "fadvise.h" #include "hard-locale.h" #include "quote.h" #include "stdio--.h" @@ -273,6 +274,8 @@ compare_files (char **infiles) if (!streams[i]) error (EXIT_FAILURE, errno, "%s", infiles[i]); + fadvise (streams[i], FADVISE_SEQUENTIAL); + thisline[i] = readlinebuffer (all_line[i][alt[i][0]], streams[i]); if (ferror (streams[i])) error (EXIT_FAILURE, errno, "%s", infiles[i]); |