Fix build on i386 and armv6
Reported by: George L. Yermulnik <yz@yz.kiev.ua>
This commit is contained in:
parent
e0f82c7741
commit
9695ed7d7f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=449975
15
ftp/lftp/files/patch-src-PollVec.cc
Normal file
15
ftp/lftp/files/patch-src-PollVec.cc
Normal file
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user