[axel-devel] [axel-Bugs][310700] _LARGEFILE64_SOURCE not defined
axel-bugs at alioth.debian.org
axel-bugs at alioth.debian.org
Wed Apr 2 18:34:24 UTC 2008
Bugs item #310700, was opened at 2008-04-02 16:18
>Status: Closed
>Priority: 4
Submitted By: Nobody (None)
>Assigned to: Giridhar Appaji Nag Y (appaji-guest)
Summary: _LARGEFILE64_SOURCE not defined
Initial Comment:
lseek64(3) is used in axel_open in axel.cc, but _LARGEFILE64_SOURCE never seems to be defined. This leads to a warning when compiling.
gcc -c axel.c -o axel.o -Wall -g
axel.c: In function ‘axel_open’:
axel.c:198: warning: implicit declaration of function ‘lseek64’
----------------------------------------------------------------------
>Comment By: Giridhar Appaji Nag Y (appaji-guest)
Date: 2008-04-03 00:04
Message:
Committed the following Fix to SVN.
Index: configure
===================================================================
--- configure (revision 25)
+++ configure (working copy)
@@ -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;
Index: axel.c
===================================================================
--- axel.c (revision 25)
+++ axel.c (working copy)
@@ -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
----------------------------------------------------------------------
You can respond by visiting:
http://alioth.debian.org/tracker/?func=detail&atid=413085&aid=310700&group_id=100070
More information about the axel-devel
mailing list