git: 0189e706132d - main - databases/libpbl: fix build on powerpc
Piotr Kubaj
pkubaj at FreeBSD.org
Mon Sep 27 12:35:24 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0189e706132d6cef1903f4b8b45199aae09d6331
commit 0189e706132d6cef1903f4b8b45199aae09d6331
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-09-27 12:22:35 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-09-27 12:22:35 +0000
databases/libpbl: fix build on powerpc
powerpc has 64-bit time_t.
Tested for no breakage on amd64, i386 and powerpc64.
---
databases/libpbl/files/patch-pblPerform.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/databases/libpbl/files/patch-pblPerform.c b/databases/libpbl/files/patch-pblPerform.c
new file mode 100644
index 000000000000..151d8a0ed7c5
--- /dev/null
+++ b/databases/libpbl/files/patch-pblPerform.c
@@ -0,0 +1,11 @@
+--- 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 );\
+ }\
+
+ /*****************************************************************************/
More information about the dev-commits-ports-all
mailing list