Salome HOME
- Fixes for BatchManager_Local
[tools/libbatch.git] / src / CCC / BatchManager_CCC.cxx
index 1703e5b2dc81799a1c148f978f355dcff70a4fb4..715a51fc98ce6ab4124d9f4308a8b3435b57f4e0 100644 (file)
@@ -36,7 +36,6 @@
 #include <fstream>
 #include <sstream>
 #include <string>
-#include <sys/stat.h>
 
 #include <stdlib.h>
 #include <string.h>
@@ -256,7 +255,7 @@ namespace Batch {
     tempOutputFile.flush();
     tempOutputFile.close();
 
-    BATCH_CHMOD(TmpFileName.c_str(), 0x1ED);
+    Utils::chmod(TmpFileName.c_str(), 0x1ED);
     cerr << "Batch script file generated is: " << TmpFileName.c_str() << endl;
 
     int status = _protocol.copyFile(TmpFileName, "", "",