1 --- transmission-1.90/configure.ac.orig 2010-02-20 15:17:44.000000000 +0100
2 +++ transmission-1.90/configure.ac 2010-02-20 15:19:12.000000000 +0100
7 +AC_MSG_CHECKING([for SYS_fallocate])
8 +AC_TRY_LINK([#include <sys/syscall.h>
9 +#include <sys/types.h>],
10 + [return syscall(SYS_fallocate, 0, 0, (loff_t) 0, (loff_t) 0);],
11 + [AC_DEFINE([HAVE_SYS_FALLOCATE],[1],[Defined if you have the SYS_fallocate syscall number])
12 + AC_MSG_RESULT([yes])],
13 + [AC_MSG_RESULT([no])])
15 AC_CHECK_FUNCS([pread pwrite lrintf strlcpy daemon dirname basename strcasecmp localtime_r fallocate64 posix_fallocate memmem strtold syslog valloc])
18 --- transmission-1.83/libtransmission/fdlimit.c.orig 2010-01-29 02:01:32.000000000 +0100
19 +++ transmission-1.83/libtransmission/fdlimit.c 2010-02-07 05:53:09.000000000 +0100
24 +#ifdef HAVE_SYS_FALLOCATE
25 + #include <sys/syscall.h>
32 success = !fcntl( fd, F_PREALLOCATE, &fst );
35 +# ifdef HAVE_SYS_FALLOCATE
38 + success = !syscall( SYS_fallocate, fd, 0, (loff_t) 0, (loff_t) length );
41 # ifdef HAVE_POSIX_FALLOCATE