svn commit: r526426 - head/science/mbdyn/files
Piotr Kubaj
pkubaj at FreeBSD.org
Mon Feb 17 20:26:40 UTC 2020
Author: pkubaj
Date: Mon Feb 17 20:26:39 2020
New Revision: 526426
URL: https://svnweb.freebsd.org/changeset/ports/526426
Log:
science/mbdyn: fix build on powerpc*
result is undefined:
wraptest.cc:325:9: error: 'result' was not declared in this scope
325 | time = result << 32;
| ^~~~~~
PR: 244202
Approved by: yuri (maintainer)
Added:
head/science/mbdyn/files/
head/science/mbdyn/files/patch-libraries_libmbwrap_wraptest.cc (contents, props changed)
Added: head/science/mbdyn/files/patch-libraries_libmbwrap_wraptest.cc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/science/mbdyn/files/patch-libraries_libmbwrap_wraptest.cc Mon Feb 17 20:26:39 2020 (r526426)
@@ -0,0 +1,13 @@
+--- libraries/libmbwrap/wraptest.cc.orig 2020-02-17 19:20:23 UTC
++++ libraries/libmbwrap/wraptest.cc
+@@ -321,9 +321,7 @@ static inline unsigned long long rd_CPU_ts(void)
+ "\tbne 0b \n"
+ : "=r"(upper),"=r"(lower),"=r"(tmp)
+ );
+- time = upper;
+- time = result << 32;
+- time = result|lower;
++ time = (upper << 32) | lower;
+ #endif
+ return time;
+ }
More information about the svn-ports-all
mailing list