From e4dbb761381dd20945eca6a6887e01797f46624e Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Wed, 27 Jun 2012 18:25:16 +0200 Subject: [PATCH] Should fix win build. --- SimpleTests/MatrixTests/MatMult.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/SimpleTests/MatrixTests/MatMult.cpp b/SimpleTests/MatrixTests/MatMult.cpp index 5b51b579f25..09b16b8aa61 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 -- GitLab