1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/science/mbdyn/files/patch-mbdyn_base_invsolver.cc
Yuri Victorovich c4254019d8 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
2021-04-22 15:16:46 -07:00

12 lines
285 B
C++

--- 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,