tag patch thanks LFTP_POSIX_FALLOCATE_CHECK fails on FreeBSD whereas it success on Debian kFreeBSD.
This patch is enough to avoid the breakage on kFreeBSD. But I think the m4/lftp.m4 test should be improved to cover the case. --- lftp-4.2.2.orig/src/Torrent.cc +++ lftp-4.2.2/src/Torrent.cc @@ -1007,6 +1007,7 @@ FD new_entry = {fd,errno,now.UnixTime()}; cache[ci].add(file,new_entry); #ifdef HAVE_POSIX_FALLOCATE +#ifndef __FreeBSD_kernel__ if(fd==-1 || size==0) return fd; if(ci==O_RDWR) { @@ -1020,6 +1021,7 @@ posix_fadvise(fd,0,size,POSIX_FADV_SEQUENTIAL); posix_fadvise(fd,0,size,POSIX_FADV_NOREUSE); } +#endif//__FreeBSD_kernel__ #endif//HAVE_POSIX_FALLOCATE return fd; } Best regards, Gonéri Le Bouder -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org