[OpenWrt-Devel] [PATCH] transmission: fallocate64 was bacported to uClibc

Roman Yeryomin leroi.lists at gmail.com
Thu Apr 2 20:57:44 EDT 2015


Signed-off-by: Roman Yeryomin <roman at advem.lv>
---
 .../patches/010-remove-fallocate64-definition.patch        | 14 ++++++++++++++
 .../patches/010_libtransmission_fallocate64_eglibc.patch   | 12 ------------
 2 files changed, 14 insertions(+), 12 deletions(-)
 create mode 100644 net/transmission/patches/010-remove-fallocate64-definition.patch
 delete mode 100644 net/transmission/patches/010_libtransmission_fallocate64_eglibc.patch

diff --git a/net/transmission/patches/010-remove-fallocate64-definition.patch b/net/transmission/patches/010-remove-fallocate64-definition.patch
new file mode 100644
index 0000000..869e64b
--- /dev/null
+++ b/net/transmission/patches/010-remove-fallocate64-definition.patch
@@ -0,0 +1,14 @@
+--- a/libtransmission/fdlimit.c	2015-04-03 03:41:10.936535751 +0300
++++ b/libtransmission/fdlimit.c	2015-04-03 03:41:20.272536044 +0300
+@@ -22,11 +22,6 @@
+  #include <fcntl.h>
+ #endif
+ 
+-#ifdef 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
+-
+ #ifdef HAVE_XFS_XFS_H
+  #include <xfs/xfs.h>
+ #endif
diff --git a/net/transmission/patches/010_libtransmission_fallocate64_eglibc.patch b/net/transmission/patches/010_libtransmission_fallocate64_eglibc.patch
deleted file mode 100644
index d4f82fc..0000000
--- a/net/transmission/patches/010_libtransmission_fallocate64_eglibc.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/libtransmission/fdlimit.c	2014-07-01 20:08:59.000000000 +0300
-+++ b/libtransmission/fdlimit.c	2014-07-13 13:30:17.000000000 +0300
-@@ -22,7 +22,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
-- 
2.1.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list