/[axel]/trunk/axel.c
ViewVC logotype

Diff of /trunk/axel.c

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

revision 25 by appaji-guest, Wed Jan 30 11:38:43 2008 UTC revision 26 by appaji-guest, Wed Apr 2 18:32:28 2008 UTC
# Line 23  Line 23 
23    Suite 330, Boston, MA  02111-1307  USA    Suite 330, Boston, MA  02111-1307  USA
24  */  */
25    
 #define _FILE_OFFSET_BITS 64  
26  #include "axel.h"  #include "axel.h"
27    
28  /* Axel */  /* Axel */
# Line 195  int axel_open( axel_t *axel ) Line 194  int axel_open( axel_t *axel )
194                  /* And check whether the filesystem can handle seeks to                  /* And check whether the filesystem can handle seeks to
195                     past-EOF areas.. Speeds things up. :) AFAIK this                     past-EOF areas.. Speeds things up. :) AFAIK this
196                     should just not happen:                              */                     should just not happen:                              */
197                  if( lseek64( axel->outfd, axel->size, SEEK_SET ) == -1 && axel->conf->num_connections > 1 )                  if( lseek( axel->outfd, axel->size, SEEK_SET ) == -1 && axel->conf->num_connections > 1 )
198                  {                  {
199                          /* But if the OS/fs does not allow to seek behind                          /* But if the OS/fs does not allow to seek behind
200                             EOF, we have to fill the file with zeroes before                             EOF, we have to fill the file with zeroes before

Legend:
Removed from v.25  
changed lines
  Added in v.26

  ViewVC Help
Powered by ViewVC 1.1.5