git: ed1519605dd1 - main - math/gismo: Fix build on non-amd64 architectures

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 12 Jan 2024 03:49:13 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ed1519605dd18b1ffce2a0564a190796ae97035e

commit ed1519605dd18b1ffce2a0564a190796ae97035e
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-01-12 03:47:59 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-01-12 03:47:59 +0000

    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
---
 math/gismo/files/patch-src_gsCore_gsSysInfo.cpp | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/math/gismo/files/patch-src_gsCore_gsSysInfo.cpp b/math/gismo/files/patch-src_gsCore_gsSysInfo.cpp
new file mode 100644
index 000000000000..1571078b3141
--- /dev/null
+++ b/math/gismo/files/patch-src_gsCore_gsSysInfo.cpp
@@ -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
+ {
+