diff options
Diffstat (limited to 'more.c')
-rw-r--r-- | more.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -123,7 +123,11 @@ extern int more_main(int argc, char **argv) | |||
123 | lines = 0; | 123 | lines = 0; |
124 | len = fprintf(stdout, "--More-- "); | 124 | len = fprintf(stdout, "--More-- "); |
125 | if (file != stdin) { | 125 | if (file != stdin) { |
126 | #if _FILE_OFFSET_BITS == 64 | ||
127 | len += fprintf(stdout, "(%d%% of %lld bytes)", | ||
128 | #else | ||
126 | len += fprintf(stdout, "(%d%% of %ld bytes)", | 129 | len += fprintf(stdout, "(%d%% of %ld bytes)", |
130 | #endif | ||
127 | (int) (100 * | 131 | (int) (100 * |
128 | ((double) ftell(file) / | 132 | ((double) ftell(file) / |
129 | (double) st.st_size)), | 133 | (double) st.st_size)), |