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