From 415835e03e5e78b5c17b450903c553a079214879 Mon Sep 17 00:00:00 2001 From: Hannes Hauswedell Date: Thu, 11 Apr 2019 15:36:11 +0000 Subject: [PATCH] fix master branch on *BSD (#792) * fix master branch on *BSD * add name to CONTRIBUTORS --- CONTRIBUTORS | 1 + src/sysinfo.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index c86d8735..bee57439 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -39,6 +39,7 @@ Eugene Zhuk Evgeny Safronov Federico Ficarelli Felix Homann +Hannes Hauswedell Ismael Jimenez Martinez Jern-Kuan Leong JianXiong Zhou diff --git a/src/sysinfo.cc b/src/sysinfo.cc index 953c170c..01ecfad0 100644 --- a/src/sysinfo.cc +++ b/src/sysinfo.cc @@ -429,7 +429,7 @@ std::string GetSystemName() { #endif return str; #else // defined(BENCHMARK_OS_WINDOWS) -#ifdef BENCHMARK_OS_MACOSX //Mac Doesnt have HOST_NAME_MAX defined +#ifdef BENCHMARK_HAS_SYSCTL // BSD/Mac Doesnt have HOST_NAME_MAX defined #define HOST_NAME_MAX 64 #elif defined(BENCHMARK_OS_QNX) #define HOST_NAME_MAX 154