1 |
stephdl |
1.1 |
diff -ru buffer-1.19.orig/buffer.c buffer-1.19/buffer.c |
2 |
|
|
--- buffer-1.19.orig/buffer.c 2003-01-05 13:08:22.000000000 -0700 |
3 |
|
|
+++ buffer-1.19/buffer.c 2003-01-05 13:28:07.000000000 -0700 |
4 |
|
|
@@ -109,6 +109,9 @@ |
5 |
|
|
* Initial revision |
6 |
|
|
* |
7 |
|
|
*/ |
8 |
|
|
+#define _FILE_OFFSET_BITS 64 |
9 |
|
|
+#define _LARGEFILE_SOURCE 1 |
10 |
|
|
+ |
11 |
|
|
#include <stdlib.h> |
12 |
|
|
#include <string.h> |
13 |
|
|
#include <unistd.h> |
14 |
|
|
@@ -308,7 +311,7 @@ |
15 |
|
|
fprintf( stderr, "-i given twice\n" ); |
16 |
|
|
byee( -1 ); |
17 |
|
|
} |
18 |
|
|
- if( (fdin = open( optarg, O_RDONLY )) < 0 ){ |
19 |
|
|
+ if( (fdin = open( optarg, O_RDONLY)) < 0 ){ |
20 |
|
|
report_proc(); |
21 |
|
|
perror( "cannot open input file" ); |
22 |
|
|
fprintf( stderr, "filename: %s\n", optarg ); |