From f17b8de907258274c0942568c414810410b970f6 Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Thu, 7 Mar 2024 15:22:08 +0900 Subject: [PATCH] fallback to _POSIX_HOST_NAME_MAX if HOST_NAME_MAX is not defined --- Grid/util/Init.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Grid/util/Init.cc b/Grid/util/Init.cc index 9a0b4376..363d9ef4 100644 --- a/Grid/util/Init.cc +++ b/Grid/util/Init.cc @@ -77,6 +77,10 @@ feenableexcept (unsigned int excepts) } #endif +#ifndef HOST_NAME_MAX +#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX +#endif + NAMESPACE_BEGIN(Grid); //////////////////////////////////////////////////////