/[smeserver]/rpms/buffer/sme10/buffer-largefile.patch
ViewVC logotype

Contents of /rpms/buffer/sme10/buffer-largefile.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sun Feb 7 13:48:09 2016 UTC (8 years, 9 months ago) by stephdl
Branch: MAIN
CVS Tags: buffer-1_19-7_el7_sme
* Sun Feb 7 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 1.19-7.sme
- Build for sme10

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 );

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed