]> git.pld-linux.org Git - packages/lxc.git/blob - x32.patch
3574d94313f0a9254ded69dac60a5854944843b9
[packages/lxc.git] / x32.patch
1 diff -urN lxc-3.0.3.orig/src/lxc/log.c lxc-3.0.3/src/lxc/log.c
2 --- lxc-3.0.3.orig/src/lxc/log.c        2018-11-23 00:08:27.000000000 +0100
3 +++ lxc-3.0.3/src/lxc/log.c     2019-01-28 19:52:33.204408097 +0100
4 @@ -271,7 +271,11 @@
5         seconds = (time->tv_sec - d_in_s - h_in_s - (minutes * 60));
6  
7         /* Make string from nanoseconds. */
8 +        #ifdef __ILP32__
9 +        ret = snprintf(nanosec, LXC_NUMSTRLEN64, "%lld", (int64_t)time->tv_nsec);
10 +        #else
11         ret = snprintf(nanosec, sizeof(nanosec), "%"PRId64, (int64_t)time->tv_nsec);
12 +       #endif
13         if (ret < 0 || ret >= sizeof(nanosec))
14                 return -1;
15  
This page took 0.039092 seconds and 2 git commands to generate.