transmission: import from packages, update to latest

Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
This commit is contained in:
Maxim Storchak
2014-07-13 13:53:55 +03:00
parent 10d9b68c49
commit b459aad260
5 changed files with 327 additions and 0 deletions
@@ -0,0 +1,12 @@
--- 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
@@ -0,0 +1,11 @@
--- a/configure.ac
+++ b/configure.ac
@@ -251,7 +251,7 @@
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([#include <miniupnpc/miniupnpc.h>],
[struct UPNPDev dev;])],
- [upnp_version="unknown"],
+ [upnp_version="none"],
[upnp_version="none"]
)