Changeset 7098
- Timestamp:
- Nov 12, 2008, 3:59:30 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r7097 r7098 50 50 AC_HEADER_STDC 51 51 AC_HEADER_TIME 52 AC_CHECK_FUNCS([lrintf strlcpy daemon dirname basename daemon strcasecmp localtime_r fallocate posix_fallocate]) 52 53 AC_MSG_CHECKING([for fallocate]) 54 AC_TRY_LINK([#include <linux/falloc.h>], 55 [return fallocate(-1,0,0,0);], 56 [AC_DEFINE([HAVE_FALLOCATE],[1],[Defined if fallocate() exists]) 57 AC_MSG_RESULT([yes])], 58 [AC_MSG_RESULT([no])]) 59 AC_CHECK_FUNCS([lrintf strlcpy daemon dirname basename daemon strcasecmp localtime_r posix_fallocate]) 53 60 AC_PROG_INSTALL 54 61 AC_PROG_MAKE_SET -
trunk/libtransmission/fdlimit.c
r7051 r7098 37 37 #endif 38 38 39 #ifdef HAVE_FALLOCATE 40 #include <linux/falloc.h> 41 #endif 42 39 43 #include <sys/types.h> 40 44 #include <sys/stat.h> … … 105 109 #ifdef HAVE_FALLOCATE 106 110 107 return fallocate( fd, 0, offset, length );111 return fallocate( fd, FALLOC_FL_KEEP_SIZE, 0, length ); 108 112 109 113 #elif defined(HAVE_POSIX_FALLOCATE)
Note: See TracChangeset
for help on using the changeset viewer.