Commit | Line | Data |
---|---|---|
291a8094 FF |
1 | From ee60a0f71fde2de9d124ef287034d4d170544b17 Mon Sep 17 00:00:00 2001 |
2 | From: Ganael Laplanche <ganael.laplanche@martymac.org> | |
3 | Date: Sun, 17 Sep 2017 13:45:00 +0200 | |
4 | Subject: [PATCH] Fix build on FreeBSD-i386 [1] (#391) | |
5 | ||
6 | [1] https://lists.freebsd.org/pipermail/freebsd-pkg-fallout/Week-of-Mon-20170911/539371.html | |
7 | --- | |
8 | src/PollVec.cc | 2 +- | |
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
10 | ||
11 | diff --git a/src/PollVec.cc b/src/PollVec.cc | |
12 | index 64814792..17c49127 100644 | |
13 | --- a/src/PollVec.cc | |
14 | +++ b/src/PollVec.cc | |
15 | @@ -30,7 +30,7 @@ static inline bool operator<(const timeval& a,const timeval& b) | |
16 | ||
17 | void PollVec::AddTimeoutU(unsigned t) | |
18 | { | |
19 | - struct timeval new_timeout={t/1000000,t%1000000}; | |
20 | + struct timeval new_timeout={static_cast<time_t>(t/1000000),static_cast<suseconds_t>(t%1000000)}; | |
21 | if(tv_timeout.tv_sec<0 || new_timeout<tv_timeout) | |
22 | SetTimeout(new_timeout); | |
23 | } |