packages/apr: force LFS support, fix apr_time_now function (closes: #9287)
[openwrt/svn-archive/archive.git] / libs / apr / patches / 101-fix_apr_time_now.patch
1 https://dev.openwrt.org/ticket/9287
2
3 --- a/time/unix/time.c
4 +++ b/time/unix/time.c
5 @@ -75,7 +75,7 @@ APR_DECLARE(apr_time_t) apr_time_now(voi
6 {
7 struct timeval tv;
8 gettimeofday(&tv, NULL);
9 - return tv.tv_sec * APR_USEC_PER_SEC + tv.tv_usec;
10 + return tv.tv_sec * (apr_time_t)APR_USEC_PER_SEC + (apr_time_t)tv.tv_usec;
11 }
12
13 static void explode_time(apr_time_exp_t *xt, apr_time_t t,