From 0d96f0c7effba26bebfa85bcc0a5ec39bf942948 Mon Sep 17 00:00:00 2001 From: barate Date: Mon, 19 Oct 2009 08:22:29 +0000 Subject: [PATCH] Added missing includes for newer gcc versions. --- src/Core/Batch_BatchManager_eClient.cxx | 3 +++ src/Core/Batch_CommunicationProtocol.cxx | 15 ++++++++------- src/LSF/Batch_BatchManager_eLSF.cxx | 3 +++ src/PBS/Batch_BatchManager_ePBS.cxx | 3 +++ src/SGE/Batch_BatchManager_eSGE.cxx | 3 +++ 5 files changed, 20 insertions(+), 7 deletions(-) diff --git a/src/Core/Batch_BatchManager_eClient.cxx b/src/Core/Batch_BatchManager_eClient.cxx index fc3f473..c386f2a 100644 --- a/src/Core/Batch_BatchManager_eClient.cxx +++ b/src/Core/Batch_BatchManager_eClient.cxx @@ -29,6 +29,9 @@ * */ +#include +#include + #include #include #include diff --git a/src/Core/Batch_CommunicationProtocol.cxx b/src/Core/Batch_CommunicationProtocol.cxx index 656c9fd..da4d49c 100644 --- a/src/Core/Batch_CommunicationProtocol.cxx +++ b/src/Core/Batch_CommunicationProtocol.cxx @@ -26,6 +26,7 @@ * Author : Renaud BARATE - EDF R&D */ +#include #include #include @@ -48,13 +49,13 @@ namespace Batch { const CommunicationProtocol & CommunicationProtocol::getInstance(CommunicationProtocolType protocolType) { if (protocolType == SH) { - #ifdef HAS_SH - static CommunicationProtocolSH instanceSH; - return instanceSH; - #else - throw RunTimeException("Can't use SH protocol (SH tools were " - "not found on the system at compile time)."); - #endif +#ifdef HAS_SH + static CommunicationProtocolSH instanceSH; + return instanceSH; +#else + throw RunTimeException("Can't use SH protocol (SH tools were " + "not found on the system at compile time)."); +#endif } else if (protocolType == RSH) { #ifdef HAS_RSH static CommunicationProtocolRSH instanceRSH; diff --git a/src/LSF/Batch_BatchManager_eLSF.cxx b/src/LSF/Batch_BatchManager_eLSF.cxx index 2b7ea3c..a74a4b2 100644 --- a/src/LSF/Batch_BatchManager_eLSF.cxx +++ b/src/LSF/Batch_BatchManager_eLSF.cxx @@ -29,6 +29,9 @@ * */ +#include +#include + #include #include #include diff --git a/src/PBS/Batch_BatchManager_ePBS.cxx b/src/PBS/Batch_BatchManager_ePBS.cxx index f2d5b79..38593b3 100644 --- a/src/PBS/Batch_BatchManager_ePBS.cxx +++ b/src/PBS/Batch_BatchManager_ePBS.cxx @@ -29,6 +29,9 @@ * */ +#include +#include + #include #include #include diff --git a/src/SGE/Batch_BatchManager_eSGE.cxx b/src/SGE/Batch_BatchManager_eSGE.cxx index 9a39df2..dc7845e 100644 --- a/src/SGE/Batch_BatchManager_eSGE.cxx +++ b/src/SGE/Batch_BatchManager_eSGE.cxx @@ -29,6 +29,9 @@ * */ +#include +#include + #include #include #include -- 2.39.2