]> git.pld-linux.org Git - packages/seatd.git/blob - x32.patch
fix build on x32
[packages/seatd.git] / x32.patch
1 --- seatd-0.5.0/common/log.c.orig       2021-06-24 17:22:50.385736148 +0000
2 +++ seatd-0.5.0/common/log.c    2021-06-24 17:24:59.695067141 +0000
3 @@ -56,7 +56,11 @@
4                 postfix = "\n";
5         }
6  
7 +#if defined(__x86_64__) && defined(__ILP32__)
8 +       fprintf(stderr, "%02d:%02d:%02d.%03lld %s ", (int)(ts.tv_sec / 60 / 60),
9 +#else
10         fprintf(stderr, "%02d:%02d:%02d.%03ld %s ", (int)(ts.tv_sec / 60 / 60),
11 +#endif
12                 (int)(ts.tv_sec / 60 % 60), (int)(ts.tv_sec % 60), ts.tv_nsec / 1000000, prefix);
13  
14         vfprintf(stderr, fmt, args);
This page took 0.109988 seconds and 3 git commands to generate.