From ed1519605dd18b1ffce2a0564a190796ae97035e Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Thu, 11 Jan 2024 19:47:59 -0800 Subject: [PATCH] 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(+) create mode 100644 math/gismo/files/patch-src_gsCore_gsSysInfo.cpp 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 ++#define HOST_NAME_MAX MAXHOSTNAMELEN ++ + namespace gismo + { +