mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
(trunk libT) #3826 "don't use pread() or pwrite() on uclibc" -- fixed.
This commit is contained in:
parent
a31e23f094
commit
6e52ccb239
1 changed files with 6 additions and 0 deletions
|
@ -199,6 +199,12 @@ preallocateFileFull( const char * filename, uint64_t length )
|
||||||
/* Like pread and pwrite, except that the position is undefined afterwards.
|
/* Like pread and pwrite, except that the position is undefined afterwards.
|
||||||
And of course they are not thread-safe. */
|
And of course they are not thread-safe. */
|
||||||
|
|
||||||
|
/* https://trac.transmissionbt.com/ticket/3826 */
|
||||||
|
#ifdef __UCLIBC__
|
||||||
|
#undef HAVE_PREAD
|
||||||
|
#undef HAVE_PWRITE
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef SYS_DARWIN
|
#ifdef SYS_DARWIN
|
||||||
#define HAVE_PREAD
|
#define HAVE_PREAD
|
||||||
#define HAVE_PWRITE
|
#define HAVE_PWRITE
|
||||||
|
|
Loading…
Reference in a new issue