]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Only use gethostname() if it is defined and not broken.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 2 Mar 2005 18:00:26 +0000 (18:00 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 2 Mar 2005 18:00:26 +0000 (18:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@9952 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/job_identifier.cc

index 4bb10eacf5a3948acd8a2fa6cfa7334d87c5497b..b0495d719cdaf47ce07883b90b4ba0eaeea6eb0f 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 by the deal authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005 by the deal authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -32,7 +32,7 @@ JobIdentifier::JobIdentifier()
 // It should be possible not to check DEBUG, but there is this
 // tedious -ansi, which causes problems with linux headers
   
-#if defined(HAVE_GETHOSTNAME) && !defined(DEBUG)
+#if defined(HAVE_GETHOSTNAME) && !defined(DEAL_II_BROKEN_GETHOSTNAME) && !defined(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.