]> SALOME platform Git repositories - tools/libbatch.git/commitdiff
Salome HOME
unistd.h does not exist on Windows V1_5_0 V1_5_0rc2
authorbarate <barate>
Fri, 25 May 2012 09:18:43 +0000 (09:18 +0000)
committerbarate <barate>
Fri, 25 May 2012 09:18:43 +0000 (09:18 +0000)
src/Core/Batch_BatchManager.cxx
src/Core/Batch_BatchManager_eClient.cxx
src/Vishnu/Batch_BatchManager_eVishnu.cxx

index 591399dc810c8809aab90cd5a2e7e9e8abb830bc..3d0b8d93812a889251ce07242bb48201fc5c2301 100644 (file)
  *
  */
 
-#include <unistd.h>
 #include <iostream>
 #include <sstream>
 #include <string>
 #ifdef WIN32
 # include<winsock2.h>
 #else
+#include <unistd.h>
 # include <netdb.h>
 #endif
 
index 835b5956f8b27e910a4c4ef452fe1e6be60b6ca4..2098e724f64e3cd470ee8b2d2bf8bbc516a2bfa1 100644 (file)
@@ -29,7 +29,6 @@
 *
 */
 
-#include <unistd.h>
 #include <stdlib.h>
 #include <string.h>
 
 #include <fstream>
 #include <sstream>
 
-#include <stdlib.h>
-
 #ifdef WIN32
 #include <direct.h>
 #include <io.h>
+#else
+#include <unistd.h>
 #endif
 
 #include <Batch_config.h>
index 2bf1ee701bf7d2affaba06e5fea7c634f0036a6c..8c78ed849ee7ca56c038355eafa6bdc3f871ecb4 100644 (file)
  *  Author : Renaud BARATE - EDF R&D
  */
 
+#ifndef WIN32
 #include <unistd.h>
+#endif
+
 #include <cstdlib>
 #include <iostream>
 #include <fstream>