]> git.pld-linux.org Git - packages/transmission.git/blobdiff - transmission-preallocate_syscall.patch
- Up to 2.10
[packages/transmission.git] / transmission-preallocate_syscall.patch
index e466711609c05067bc20d76fb6fcd2d5c4dcb963..a097a48415248ba68c9856ed4f1a722f48381b59 100644 (file)
@@ -1,18 +1,18 @@
 --- transmission-2.03/configure.ac.orig        2010-07-25 14:35:23.000000000 +0200
 +++ transmission-2.03/configure.ac     2010-07-25 14:37:39.000000000 +0200
-@@ -95,6 +95,14 @@
+@@ -108,6 +108,14 @@
  AC_HEADER_STDC
  AC_HEADER_TIME
-
 +AC_MSG_CHECKING([for SYS_fallocate])
 +AC_TRY_LINK([#include <sys/syscall.h>
 +#include <sys/types.h>],
-+              [return syscall(SYS_fallocate, 0, 0, (loff_t) 0, (loff_t) 0);],
-+              [AC_DEFINE([HAVE_SYS_FALLOCATE],[1],[Defined if you have the SYS_fallocate syscall number])
-+              AC_MSG_RESULT([yes])],
-+              [AC_MSG_RESULT([no])])
++       [return syscall(SYS_fallocate, 0, 0, (loff_t) 0, (loff_t) 0);],
++       [AC_DEFINE([HAVE_SYS_FALLOCATE],[1],[Defined if you have the SYS_fallocate syscall number])
++       AC_MSG_RESULT([yes])],
++       [AC_MSG_RESULT([no])])
 +
- AC_CHECK_FUNCS([iconv_open pread pwrite lrintf strlcpy daemon dirname basename strcasecmp localtime_r fallocate64 posix_fallocate memmem strtold syslog valloc getpagesize posix_memalign clearenv])
+ AC_CHECK_FUNCS([iconv_open pread pwrite lrintf strlcpy daemon dirname basename strcasecmp localtime_r fallocate64 posix_fallocate memmem strtold syslog valloc getpagesize posix_memalign])
  AC_PROG_INSTALL
  AC_PROG_MAKE_SET
 diff -ur transmission-2.00-orig//libtransmission/fdlimit.c transmission-2.00/libtransmission/fdlimit.c
This page took 0.106453 seconds and 4 git commands to generate.