]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid gethostname in debug mode, since Linux does not know it wth -ansi
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 17 May 2001 16:46:10 +0000 (16:46 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 17 May 2001 16:46:10 +0000 (16:46 +0000)
git-svn-id: https://svn.dealii.org/trunk@4662 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/job_identifier.cc

index cc67f9c438b3cf7217cc870bc723ef3076d072d6..ce4aaae63af084cbce022e1dbe7d759b031f9989 100644 (file)
@@ -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(" ");

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.