Also add a way to use logging library without Asio

This commit is contained in:
Robbert van der Helm
2022-04-16 19:21:34 +02:00
parent d63b4d2da5
commit 85989f4c1d
5 changed files with 13 additions and 9 deletions
+4 -4
View File
@@ -26,13 +26,13 @@
// We also use this header from the chainloaders, and we don't want to pull in
// Asio there
#ifndef PROCESS_NO_ASIO
#ifndef WITHOUT_ASIO
#ifdef __WINE__
#include "../wine-host/asio-fix.h"
#endif
#include <asio/posix/stream_descriptor.hpp>
#endif // PROCESS_NO_ASIO
#endif // WITHOUT_ASIO
// A minimal API akin to Boost.Process for launching and managing processes
// using plain Linux APIs. Needed so we can implement our chainloader without
@@ -240,7 +240,7 @@ class Process {
*/
StatusResult spawn_get_status() const;
#ifndef PROCESS_NO_ASIO
#ifndef WITHOUT_ASIO
/**
* Spawn the process without waiting for its completion, leave STDIN alone,
* create pipes for STDOUT and STDERR, and assign those to the provided
@@ -251,7 +251,7 @@ class Process {
HandleResult spawn_child_piped(
asio::posix::stream_descriptor& stdout_pipe,
asio::posix::stream_descriptor& stderr_pipe) const;
#endif // PROCESS_NO_ASIO
#endif // WITHOUT_ASIO
/**
* Spawn the process without waiting for its completion, leave STDIN alone,