From: guido Date: Thu, 17 May 2001 16:46:10 +0000 (+0000) Subject: Avoid gethostname in debug mode, since Linux does not know it wth -ansi X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c1115a543ccf41e7a6272e04b1858fbaf1d86c4;p=dealii-svn.git Avoid gethostname in debug mode, since Linux does not know it wth -ansi git-svn-id: https://svn.dealii.org/trunk@4662 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/job_identifier.cc b/deal.II/base/source/job_identifier.cc index cc67f9c438..ce4aaae63a 100644 --- a/deal.II/base/source/job_identifier.cc +++ b/deal.II/base/source/job_identifier.cc @@ -27,7 +27,9 @@ JobIdentifier::JobIdentifier() time_t t = time(0); id = std::string(program_id()); -#if HAVE_GETHOSTNAME +//TODO:[GK] try to avoid this hack + +#if (HAVE_GETHOSTNAME && (!DEBUG)) char name[100]; gethostname(name,99); id += std::string(name) + std::string(" ");