summaryrefslogtreecommitdiff
path: root/science/mbdyn/files/patch-mbdyn_base_invsolver.cc
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2021-04-22 15:12:26 -0700
committerYuri Victorovich <yuri@FreeBSD.org>2021-04-22 15:16:46 -0700
commitc4254019d8e8aa636db96bcea5702e0a39880048 (patch)
treef13f0d619ff6a7a8063c5c0e2c99b45210439075 /science/mbdyn/files/patch-mbdyn_base_invsolver.cc
parentwww/py-boto3: Update 1.17.54 -> 1.17.55 (diff)
science/mbdyn: Unbreak build by properly implementing get_nprocs() for FreeBSD.
It looks like it was only built for one CPU before and didn't fail. Some change in the underlying libraries triggered the build to become multi-CPU and it began failing because get_nprocs() wasn't available for FreeBSD and also was't properly linked to the surrounding code. Reported by: fallout
Diffstat (limited to 'science/mbdyn/files/patch-mbdyn_base_invsolver.cc')
-rw-r--r--science/mbdyn/files/patch-mbdyn_base_invsolver.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/science/mbdyn/files/patch-mbdyn_base_invsolver.cc b/science/mbdyn/files/patch-mbdyn_base_invsolver.cc
new file mode 100644
index 000000000000..63e116306104
--- /dev/null
+++ b/science/mbdyn/files/patch-mbdyn_base_invsolver.cc
@@ -0,0 +1,11 @@
+--- mbdyn/base/invsolver.cc.orig 2017-09-09 09:20:12 UTC
++++ mbdyn/base/invsolver.cc
+@@ -76,6 +76,8 @@
+
+ #include "solver_impl.h"
+
++extern "C" {int get_nprocs(void);}
++
+ InverseSolver::InverseSolver(MBDynParser& HPar,
+ const std::string& sInFName,
+ const std::string& sOutFName,