freebsd-ports/databases/libpbl/files/patch-pblPerform.c
Piotr Kubaj 0189e70613 databases/libpbl: fix build on powerpc
powerpc has 64-bit time_t.

Tested for no breakage on amd64, i386 and powerpc64.
2021-09-27 12:22:35 +00:00

11 lines
428 B
C

--- pblPerform.c.orig 2021-09-26 20:04:50 UTC
+++ pblPerform.c
@@ -85,7 +85,7 @@ if( end.tv_usec < start.tv_usec )\
start.tv_sec++;\
}\
\
-printf( "%s took %ld.%.6ld\n", tag, (long)end.tv_sec - start.tv_sec, (long)end.tv_usec );\
+printf( "%s took %lld.%.6lld\n", tag, (long long)end.tv_sec - start.tv_sec, (long long)end.tv_usec );\
}\
/*****************************************************************************/