mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
math/gismo: Fix build on non-amd64 architectures
.. by defining HOST_NAME_MAX. HOST_NAME_MAX is only used on non-amd64 architectures in gismo. Reported by: fallout
This commit is contained in:
parent
829c6082ad
commit
ed1519605d
1 changed files with 15 additions and 0 deletions
15
math/gismo/files/patch-src_gsCore_gsSysInfo.cpp
Normal file
15
math/gismo/files/patch-src_gsCore_gsSysInfo.cpp
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
- workaround for the compilation failure on non-amd64 architectures
|
||||||
|
- due to the use of missing value HOST_NAME_MAX only on these architectures
|
||||||
|
|
||||||
|
--- src/gsCore/gsSysInfo.cpp.orig 2024-01-12 03:28:55 UTC
|
||||||
|
+++ src/gsCore/gsSysInfo.cpp
|
||||||
|
@@ -30,6 +30,9 @@
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#include <sys/param.h>
|
||||||
|
+#define HOST_NAME_MAX MAXHOSTNAMELEN
|
||||||
|
+
|
||||||
|
namespace gismo
|
||||||
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue