mirror of
https://github.com/google/benchmark.git
synced 2025-04-01 15:11:04 +08:00
define HOST_NAME_MAX for z/oS (#1717)
This commit is contained in:
parent
6b7e86c5c8
commit
7b52bf7346
@ -460,6 +460,8 @@ std::string GetSystemName() {
|
||||
#define HOST_NAME_MAX 256
|
||||
#elif defined(BENCHMARK_OS_SOLARIS)
|
||||
#define HOST_NAME_MAX MAXHOSTNAMELEN
|
||||
#elif defined(BENCHMARK_OS_ZOS)
|
||||
#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
|
||||
#else
|
||||
#pragma message("HOST_NAME_MAX not defined. using 64")
|
||||
#define HOST_NAME_MAX 64
|
||||
|
Loading…
Reference in New Issue
Block a user