]> git.lyx.org Git - features.git/blobdiff - src/support/ForkedCalls.cpp
Fix compilation with MSVC 19.
[features.git] / src / support / ForkedCalls.cpp
index f81c1d20a96764889df90f8a4219662543d79cdf..387f8561bfb55e459a337057cb9694076c50beb8 100644 (file)
@@ -24,6 +24,8 @@
 #include "support/bind.h"
 
 #include <cerrno>
+#include <cstring>
+#include <list>
 #include <queue>
 #include <sstream>
 #include <utility>
@@ -374,7 +376,7 @@ int ForkedCall::generateChild()
                        argv.push_back(&*it);
                prev = *it;
        }
-       argv.push_back(0);
+       argv.push_back(nullptr);
 
        // Debug output.
        if (lyxerr.debugging(Debug::FILES)) {
@@ -448,7 +450,7 @@ ForkedCall::sigPtr add(string const & process);
 static queue<Process> callQueue_;
 
 /// flag whether queue is running
-static bool running_ = 0;
+static bool running_ = false;
 
 ///
 void startCaller();
@@ -661,7 +663,7 @@ void handleCompletedProcesses()
                        forkedCalls.erase(it);
                        actCall->emitSignal();
 
-                       /* start all over: emiting the signal can result
+                       /* start all over: emitting the signal can result
                         * in changing the list (Ab)
                         */
                        it = forkedCalls.begin();