diff options
author | Ganael LAPLANCHE <martymac@FreeBSD.org> | 2017-09-16 21:30:32 +0000 |
---|---|---|
committer | Ganael LAPLANCHE <martymac@FreeBSD.org> | 2017-09-16 21:30:32 +0000 |
commit | 9695ed7d7f1df218e5965e445bfc665ac584889a (patch) | |
tree | 82f8a9a056e67959dd71346bef2031af77b8b22f /ftp | |
parent | e0f82c7741d4edf1c0dfe6f8bb1b2a646b7d561d (diff) | |
download | ports-9695ed7d7f1df218e5965e445bfc665ac584889a.tar.gz ports-9695ed7d7f1df218e5965e445bfc665ac584889a.zip |
Fix build on i386 and armv6
Reported by: George L. Yermulnik <yz@yz.kiev.ua>
Notes
Notes:
svn path=/head/; revision=449975
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/lftp/files/patch-src-PollVec.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ftp/lftp/files/patch-src-PollVec.cc b/ftp/lftp/files/patch-src-PollVec.cc new file mode 100644 index 000000000000..867af39ab487 --- /dev/null +++ b/ftp/lftp/files/patch-src-PollVec.cc @@ -0,0 +1,15 @@ +Fix build on i386 [1] + +[1] https://lists.freebsd.org/pipermail/freebsd-pkg-fallout/Week-of-Mon-20170911/539371.html + +--- ./src/PollVec.cc.orig 2017-09-16 22:29:12.266876000 +0200 ++++ ./src/PollVec.cc 2017-09-16 22:31:49.303761000 +0200 +@@ -30,7 +30,7 @@ + + void PollVec::AddTimeoutU(unsigned t) + { +- struct timeval new_timeout={t/1000000,t%1000000}; ++ struct timeval new_timeout={static_cast<time_t>(t/1000000),static_cast<suseconds_t>(t%1000000)}; + if(tv_timeout.tv_sec<0 || new_timeout<tv_timeout) + SetTimeout(new_timeout); + } |