From: barate Date: Mon, 19 Oct 2009 08:22:29 +0000 (+0000) Subject: Added missing includes for newer gcc versions. X-Git-Tag: V_1_0_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0d96f0c7effba26bebfa85bcc0a5ec39bf942948;p=tools%2Flibbatch.git Added missing includes for newer gcc versions. --- 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