]> git.pld-linux.org Git - packages/lxc.git/blame - x32.patch
- fix build on x32
[packages/lxc.git] / x32.patch
CommitLineData
216742cb
JR
1--- lxc-2.0.8/src/lxc/log.c~ 2017-05-11 19:23:06.000000000 +0200
2+++ lxc-2.0.8/src/lxc/log.c 2017-05-27 21:36:35.137755023 +0200
3@@ -154,7 +154,11 @@
4 seconds = (time->tv_sec - d_in_s - h_in_s - (minutes * 60));
5
6 /* Make string from nanoseconds. */
7+#ifdef __ILP32__
8+ ret = snprintf(nanosec, LXC_NUMSTRLEN64, "%lld", time->tv_nsec);
9+#else
10 ret = snprintf(nanosec, LXC_NUMSTRLEN64, "%ld", time->tv_nsec);
11+#endif
12 if (ret < 0 || ret >= LXC_NUMSTRLEN64)
13 return -1;
14
This page took 0.147675 seconds and 4 git commands to generate.