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:
Yuri Victorovich 2024-01-11 19:47:59 -08:00
parent 829c6082ad
commit ed1519605d

View 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
{