packages/net/transmission/patches/010_libtransmission_fallocate64_eglibc.patch
obsy 6a59e46bea [packages] transmision: fixup configure, fuzz
while at it remove patch fuzz by refreshing patches

fixes build warning:
configure: WARNING: unrecognized options: --disable-gtk

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>


git-svn-id: svn://svn.openwrt.org/openwrt/packages@39199 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-04 17:03:21 +00:00

13 lines
409 B
Diff

--- a/libtransmission/fdlimit.c
+++ b/libtransmission/fdlimit.c
@@ -25,7 +25,8 @@
#include <fcntl.h>
#endif
-#ifdef HAVE_FALLOCATE64
+/* no need to define fallocate64 in glibc/eglibc case */
+#if defined(__UCLIBC__) && (HAVE_FALLOCATE64)
/* FIXME can't find the right #include voodoo to pick up the declaration.. */
extern int fallocate64 (int fd, int mode, uint64_t offset, uint64_t len);
#endif