libxml2: moved to github
[openwrt.org/packages.git] / net / 010_libtransmission_fallocate64_eglibc.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
--- 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
 
comments