diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2021-04-22 15:12:26 -0700 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2021-04-22 15:16:46 -0700 |
commit | c4254019d8e8aa636db96bcea5702e0a39880048 (patch) | |
tree | f13f0d619ff6a7a8063c5c0e2c99b45210439075 /science/mbdyn/files/patch-mbdyn_base_readlinsol.cc | |
parent | www/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_readlinsol.cc')
-rw-r--r-- | science/mbdyn/files/patch-mbdyn_base_readlinsol.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/science/mbdyn/files/patch-mbdyn_base_readlinsol.cc b/science/mbdyn/files/patch-mbdyn_base_readlinsol.cc new file mode 100644 index 000000000000..2154c6d46aaf --- /dev/null +++ b/science/mbdyn/files/patch-mbdyn_base_readlinsol.cc @@ -0,0 +1,11 @@ +--- mbdyn/base/readlinsol.cc.orig 2021-04-22 19:28:15 UTC ++++ mbdyn/base/readlinsol.cc +@@ -35,6 +35,8 @@ + #include "dataman.h" + #include "readlinsol.h" + ++extern "C" {int get_nprocs(void);} ++ + void + ReadLinSol(LinSol& cs, HighParser &HP, bool bAllowEmpty) + { |