diff --git a/SimpleTests/MatrixTests/MatMult.cpp b/SimpleTests/MatrixTests/MatMult.cpp
index 5b51b579f2532aa2c51f7f7c2675cab64ca1ec46..09b16b8aa6195a550f39e4b270dcdcfdd0b483d1 100644
--- a/SimpleTests/MatrixTests/MatMult.cpp
+++ b/SimpleTests/MatrixTests/MatMult.cpp
@@ -26,7 +26,6 @@
 
 #ifdef OGS_BUILD_INFO
 #include "BuildInfo.h"
-#include <sys/unistd.h>
 #endif
 
 #ifdef _OPENMP
@@ -98,11 +97,7 @@ int main(int argc, char *argv[])
 	} else {
 		INFO("CXX_FLAGS: %s %s", CMAKE_CXX_FLAGS, CMAKE_CXX_FLAGS_DEBUG);
 	}
-	const size_t length(256);
-	char *hostname(new char[length]);
-	gethostname (hostname, length);
-	INFO("hostname: %s", hostname);
-	delete [] hostname;
+	INFO("hostname: %s", HOSTNAME);
 #endif
 
 	// *** reading matrix in crs format from file