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

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

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


Revision 1.1 - (show annotations) (download)
Thu Feb 14 17:05:44 2013 UTC (11 years, 2 months ago) by slords
Branch: MAIN
CVS Tags: buffer-1_19-7_el6_sme, HEAD
Initial import

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