diff options
Diffstat (limited to 'common/subprocess.h')
-rw-r--r-- | common/subprocess.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/subprocess.h b/common/subprocess.h index e1a7ce33..179a5c51 100644 --- a/common/subprocess.h +++ b/common/subprocess.h @@ -30,8 +30,13 @@ #include <base/macros.h> #include <brillo/asynchronous_signal_handler_interface.h> #include <brillo/message_loops/message_loop.h> +#ifdef __CHROMEOS__ #include <brillo/process/process.h> #include <brillo/process/process_reaper.h> +#else +#include <brillo/process.h> +#include <brillo/process_reaper.h> +#endif // __CHROMEOS__ #include <gtest/gtest_prod.h> // for FRIEND_TEST // The Subprocess class is a singleton. It's used to spawn off a subprocess @@ -124,6 +129,7 @@ class Subprocess { // These are used to monitor the stdout of the running process, including // the stderr if it was redirected. std::unique_ptr<base::FileDescriptorWatcher::Controller> stdout_controller; + int stdout_fd{-1}; std::string stdout; }; |