Changeset 10075
- Timestamp:
- Feb 2, 2010, 3:01:25 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r10046 r10075 94 94 AC_HEADER_TIME 95 95 96 AC_CHECK_FUNCS([pread pwrite lrintf strlcpy daemon dirname basename strcasecmp localtime_r posix_fallocate memmem strtold syslog])96 AC_CHECK_FUNCS([pread pwrite lrintf strlcpy daemon dirname basename strcasecmp localtime_r fallocate64 posix_fallocate memmem strtold syslog]) 97 97 AC_PROG_INSTALL 98 98 AC_PROG_MAKE_SET -
trunk/libtransmission/fdlimit.c
r10031 r10075 44 44 #endif 45 45 46 #ifdef HAVE_FALLOCATE64 47 /* FIXME can't find the right #include voodoo to pick up the declaration.. */ 48 extern int fallocate64( int fd, int mode, uint64_t offset, uint64_t len ); 49 #endif 50 46 51 #ifdef HAVE_XFS_XFS_H 47 52 #include <xfs/xfs.h> … … 147 152 if( fd >= 0 ) 148 153 { 154 # ifdef HAVE_FALLOCATE64 155 if( !success ) 156 { 157 success = !fallocate64( fd, 0, 0, length ); 158 } 159 # endif 149 160 # ifdef HAVE_XFS_XFS_H 150 161 if( !success && platform_test_xfs_fd( fd ) ) -
trunk/libtransmission/session.c
r10045 r10075 297 297 tr_bencDictAddBool( d, TR_PREFS_KEY_PEX_ENABLED, TRUE ); 298 298 tr_bencDictAddBool( d, TR_PREFS_KEY_PORT_FORWARDING, TRUE ); 299 #ifdef HAVE_FALLOCATE64 300 tr_bencDictAddInt ( d, TR_PREFS_KEY_PREALLOCATION, TR_PREALLOCATE_FULL ); 301 #else 299 302 tr_bencDictAddInt ( d, TR_PREFS_KEY_PREALLOCATION, TR_PREALLOCATE_SPARSE ); 303 #endif 300 304 tr_bencDictAddStr ( d, TR_PREFS_KEY_PROXY, "" ); 301 305 tr_bencDictAddBool( d, TR_PREFS_KEY_PROXY_AUTH_ENABLED, FALSE );
Note: See TracChangeset
for help on using the changeset viewer.