1
0
mirror of https://github.com/google/benchmark.git synced 2025-04-01 15:11:04 +08:00

define HOST_NAME_MAX for z/oS ()

This commit is contained in:
Abhina Sree 2023-12-20 12:18:37 -05:00 committed by GitHub
parent 6b7e86c5c8
commit 7b52bf7346
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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