From beee637b044025588ad6deb16c3ae65e9dfc3d42 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Thu, 17 May 2001 16:46:10 +0000 Subject: [PATCH] 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 --- deal.II/base/source/job_identifier.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(" "); -- 2.39.5