]> SALOME platform Git repositories - tools/libbatch.git/commitdiff
Salome HOME
Added missing includes for newer gcc versions. V_1_0_0
authorbarate <barate>
Mon, 19 Oct 2009 08:22:29 +0000 (08:22 +0000)
committerbarate <barate>
Mon, 19 Oct 2009 08:22:29 +0000 (08:22 +0000)
src/Core/Batch_BatchManager_eClient.cxx
src/Core/Batch_CommunicationProtocol.cxx
src/LSF/Batch_BatchManager_eLSF.cxx
src/PBS/Batch_BatchManager_ePBS.cxx
src/SGE/Batch_BatchManager_eSGE.cxx

index fc3f473b33f93043cd146880785962141d9b0cad..c386f2a5ce033aba7315f9d360474135349cb288 100644 (file)
@@ -29,6 +29,9 @@
 *
 */
 
+#include <stdlib.h>
+#include <string.h>
+
 #include <ctime>
 #include <iostream>
 #include <fstream>
index 656c9fdc854d20396ed1792ec2e253abb25045ad..da4d49ce7d7f91d79a46077a497166a08467a1ab 100644 (file)
@@ -26,6 +26,7 @@
  *  Author : Renaud BARATE - EDF R&D
  */
 
+#include <stdlib.h>
 #include <iostream>
 
 #include <Batch_config.h>
@@ -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;
index 2b7ea3c595167e558a549ae8a9afbaf84cf5a06f..a74a4b249a247e67af145957d2be35d4a1025225 100644 (file)
@@ -29,6 +29,9 @@
  *
  */
 
+#include <stdlib.h>
+#include <string.h>
+
 #include <iostream>
 #include <fstream>
 #include <sstream>
index f2d5b79740fc521b881541703065f33c57a93076..38593b32c1f093150a57d57a1e7b0e484e0c4d91 100644 (file)
@@ -29,6 +29,9 @@
  *
  */
 
+#include <stdlib.h>
+#include <string.h>
+
 #include <iostream>
 #include <fstream>
 #include <sstream>
index 9a39df203c08aacb41e0f417c013d47c27f6648e..dc7845e43a6bf755dfda2740340ab291930abbc5 100644 (file)
@@ -29,6 +29,9 @@
  *
  */
 
+#include <stdlib.h>
+#include <string.h>
+
 #include <iostream>
 #include <fstream>
 #include <sstream>