math/xlife++: fix build with GCC-based architectures

PR:		238002
Submitted by:	pkubaj
This commit is contained in:
Yuri Victorovich 2019-05-26 18:24:56 +00:00
parent 7af6138dd6
commit ca4466607d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=502740
2 changed files with 13 additions and 1 deletions

View file

@ -15,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BROKEN_aarch64= fails to compile: BlasUtil.h:63:63: no type named 'ReturnType' in 'Eigen::ScalarBinaryOpTraits<__attribute__
USES= cmake eigen:3 fortran tar:tbz
USES= cmake compiler:c++11-lang eigen:3 fortran tar:tbz
USE_LDCONFIG= yes
CMAKE_OFF= XLIFEPP_ENABLE_ARPACK # should be ON, but it fails to build. Reported to their bugs ML.

View file

@ -0,0 +1,12 @@
--- src/utils/memoryUtils.cpp.orig 2019-05-20 17:06:38 UTC
+++ src/utils/memoryUtils.cpp
@@ -27,8 +27,8 @@ XLiFE++ is an extended library of finite elements writ
#include "utils.h"
#ifdef OS_IS_UNIX
-#include <sys/sysctl.h>
#include <sys/types.h>
+#include <sys/sysctl.h>
#include <sys/resource.h>
#endif