[axel-commits] r26 - in /trunk: axel.c configure

appaji-guest at users.alioth.debian.org appaji-guest at users.alioth.debian.org
Wed Apr 2 18:32:29 UTC 2008


Author: appaji-guest
Date: Wed Apr  2 18:32:28 2008
New Revision: 26

URL: http://svn.debian.org/wsvn/axel/?sc=1&rev=26
Log:
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 for LFS

Modified:
    trunk/axel.c
    trunk/configure

Modified: trunk/axel.c
URL: http://svn.debian.org/wsvn/axel/trunk/axel.c?rev=26&op=diff
==============================================================================
--- trunk/axel.c (original)
+++ trunk/axel.c Wed Apr  2 18:32:28 2008
@@ -23,7 +23,6 @@
   Suite 330, Boston, MA  02111-1307  USA
 */
 
-#define _FILE_OFFSET_BITS 64
 #include "axel.h"
 
 /* Axel */
@@ -195,7 +194,7 @@
 		/* And check whether the filesystem can handle seeks to
 		   past-EOF areas.. Speeds things up. :) AFAIK this
 		   should just not happen:				*/
-		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 )
 		{
 			/* But if the OS/fs does not allow to seek behind
 			   EOF, we have to fill the file with zeroes before

Modified: trunk/configure
URL: http://svn.debian.org/wsvn/axel/trunk/configure?rev=26&op=diff
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Wed Apr  2 18:32:28 2008
@@ -85,7 +85,7 @@
 	fi;
 fi
 
-echo 'CFLAGS=-g' >> Makefile.settings
+echo 'CFLAGS=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g' >> Makefile.settings
 if [ "$debug" = "1" ]; then
 	echo 'DEBUG=1' >> Makefile.settings
 	echo '#define DEBUG' >> config.h;




More information about the axel-commits mailing list