From b6cd88945f0592f1e9c440dd0c6986ef582c58a1 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 20 Sep 2017 01:31:11 +0200 Subject: [PATCH] lftp: Fix arm build for 4.8.1 --- packages/lftp/src-PollVec.cc.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 packages/lftp/src-PollVec.cc.patch diff --git a/packages/lftp/src-PollVec.cc.patch b/packages/lftp/src-PollVec.cc.patch new file mode 100644 index 000000000..604327a11 --- /dev/null +++ b/packages/lftp/src-PollVec.cc.patch @@ -0,0 +1,23 @@ +From ee60a0f71fde2de9d124ef287034d4d170544b17 Mon Sep 17 00:00:00 2001 +From: Ganael Laplanche +Date: Sun, 17 Sep 2017 13:45:00 +0200 +Subject: [PATCH] Fix build on FreeBSD-i386 [1] (#391) + +[1] https://lists.freebsd.org/pipermail/freebsd-pkg-fallout/Week-of-Mon-20170911/539371.html +--- + src/PollVec.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/PollVec.cc b/src/PollVec.cc +index 64814792..17c49127 100644 +--- a/src/PollVec.cc ++++ b/src/PollVec.cc +@@ -30,7 +30,7 @@ static inline bool operator<(const timeval& a,const timeval& b) + + void PollVec::AddTimeoutU(unsigned t) + { +- struct timeval new_timeout={t/1000000,t%1000000}; ++ struct timeval new_timeout={static_cast(t/1000000),static_cast(t%1000000)}; + if(tv_timeout.tv_sec<0 || new_timeout