Skip to content

Commit 8928622

Browse files
authored
[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 google/benchmark@7b52bf7
1 parent 4e8cb01 commit 8928622

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

third-party/benchmark/src/sysinfo.cc

+2
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ std::string GetSystemName() {
449449
#define HOST_NAME_MAX 154
450450
#elif defined(BENCHMARK_OS_RTEMS)
451451
#define HOST_NAME_MAX 256
452+
#elif defined(BENCHMARK_OS_ZOS)
453+
#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
452454
#else
453455
#pragma message("HOST_NAME_MAX not defined. using 64")
454456
#define HOST_NAME_MAX 64

0 commit comments

Comments
 (0)