From 4ff630c56fe0678241b7b72090fbc2b1ac622d59 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 2 Mar 2005 18:00:26 +0000 Subject: [PATCH] Only use gethostname() if it is defined and not broken. git-svn-id: https://svn.dealii.org/trunk@9952 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/job_identifier.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deal.II/base/source/job_identifier.cc b/deal.II/base/source/job_identifier.cc index 4bb10eacf5..b0495d719c 100644 --- a/deal.II/base/source/job_identifier.cc +++ b/deal.II/base/source/job_identifier.cc @@ -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(" "); -- 2.39.5