Skip to content

Commit

Permalink
define HOST_NAME_MAX for z/oS (#1717)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhina-sree authored Dec 20, 2023
1 parent 6b7e86c commit 7b52bf7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sysinfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b52bf7

Please sign in to comment.