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

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

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

Revision 1.1 by stephdl, Sun Feb 7 13:48:09 2016 UTC Revision 1.2 by vip-ire, Sun Feb 7 19:15:45 2016 UTC
# Line 1  Line 1 
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 );  


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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