[SystemZ][z/OS] define HOST_NAME_MAX for z/OS (#76093)

This applies the same change made in google benchmark to define HOST_NAME_MAX
for z/OS 7b52bf7346
This commit is contained in:
Abhina Sree 2023-12-20 14:29:24 -05:00 committed by GitHub
parent 4e8cb01b01
commit 892862246e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -449,6 +449,8 @@ std::string GetSystemName() {
#define HOST_NAME_MAX 154
#elif defined(BENCHMARK_OS_RTEMS)
#define HOST_NAME_MAX 256
#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