]> git.tdb.fi Git - builder.git/blobdiff - source/externaltask.cpp
Additional MSVC fixes
[builder.git] / source / externaltask.cpp
index 07ad870e6c35ec398e2885211e31fbfe890f7d28..16d1df096dd4a23eee3f60b2e54a8cf289de9884 100644 (file)
@@ -1,6 +1,4 @@
 #include <cstdlib>
-#include <unistd.h>
-#include <sys/wait.h>
 #include <msp/fs/dir.h>
 #include <msp/io/console.h>
 #include <msp/io/file.h>
@@ -73,7 +71,11 @@ void ExternalTask::start()
 
        if(stdin_action==IGNORE || stdout_action==IGNORE || stderr_action==IGNORE)
        {
+#ifdef _WIN32
+               devnull = new IO::File("nul", IO::M_RDWR);
+#else
                devnull = new IO::File("/dev/null", IO::M_RDWR);
+#endif
                if(stdin_action==IGNORE)
                        process->redirect_cin(*devnull);
                if(stdout_action==IGNORE)