From 6e52ccb2394fcdf766c9c9dfd7bff2039ecfab84 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 14 Dec 2010 05:07:06 +0000 Subject: [PATCH] (trunk libT) #3826 "don't use pread() or pwrite() on uclibc" -- fixed. --- libtransmission/fdlimit.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libtransmission/fdlimit.c b/libtransmission/fdlimit.c index 08b327149..f68a4dcd1 100644 --- a/libtransmission/fdlimit.c +++ b/libtransmission/fdlimit.c @@ -199,6 +199,12 @@ preallocateFileFull( const char * filename, uint64_t length ) /* Like pread and pwrite, except that the position is undefined afterwards. 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 #define HAVE_PREAD #define HAVE_PWRITE