libfile: moved to github
[openwrt.org/packages.git] / libs / 101-fix_apr_time_now.patch














1
2
3
4
5
6
7
8
9
10
11
12
13
14
https://dev.openwrt.org/ticket/9287
 
--- a/time/unix/time.c
+++ b/time/unix/time.c
@@ -75,7 +75,7 @@ APR_DECLARE(apr_time_t) apr_time_now(voi
 {
     struct timeval tv;
     gettimeofday(&tv, NULL);
-    return tv.tv_sec * APR_USEC_PER_SEC + tv.tv_usec;
+    return tv.tv_sec * (apr_time_t)APR_USEC_PER_SEC + (apr_time_t)tv.tv_usec;
 }
 
 static void explode_time(apr_time_exp_t *xt, apr_time_t t,
 
comments