1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

fallback to _POSIX_HOST_NAME_MAX if HOST_NAME_MAX is not defined

This commit is contained in:
Antonin Portelli 2024-03-07 15:22:08 +09:00
parent 7e5bd46dd3
commit f17b8de907

View File

@ -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);
//////////////////////////////////////////////////////