aboutsummaryrefslogtreecommitdiff
path: root/third-party
diff options
context:
space:
mode:
authorAbhina Sree <69635948+abhina-sree@users.noreply.github.com>2023-12-20 14:29:24 -0500
committerGitHub <noreply@github.com>2023-12-20 14:29:24 -0500
commit892862246e7d976251e34029baa013e1b175076a (patch)
tree98882e8851a971b3ac5fea6eaaf5a6e1d348c4de /third-party
parent4e8cb01b01458860ed3d3f6f54ca5405e50be605 (diff)
downloadllvm-892862246e7d976251e34029baa013e1b175076a.zip
llvm-892862246e7d976251e34029baa013e1b175076a.tar.gz
llvm-892862246e7d976251e34029baa013e1b175076a.tar.bz2
[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 https://github.com/google/benchmark/commit/7b52bf7346dead5ef4f29d7f98d2a26d6194252f
Diffstat (limited to 'third-party')
-rw-r--r--third-party/benchmark/src/sysinfo.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/third-party/benchmark/src/sysinfo.cc b/third-party/benchmark/src/sysinfo.cc
index d9bd651..3a56e8c 100644
--- a/third-party/benchmark/src/sysinfo.cc
+++ b/third-party/benchmark/src/sysinfo.cc
@@ -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