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