summaryrefslogtreecommitdiffstats
path: root/src/subprocess.h
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2014-05-18 22:17:44 (GMT)
committerNico Weber <nicolasweber@gmx.de>2014-05-18 22:17:44 (GMT)
commitf70e4459d207f80be0ebbc2ba73bc28ac5042c5d (patch)
tree51c8ac1d2318e96d0221559d686df00d81aaf033 /src/subprocess.h
parent7ea137fc9a0e810f4d80ef28ea61de30ede0f730 (diff)
parentb0ada0efd9ee1d80d38c781fa15d73bece4a3d69 (diff)
downloadNinja-f70e4459d207f80be0ebbc2ba73bc28ac5042c5d.zip
Ninja-f70e4459d207f80be0ebbc2ba73bc28ac5042c5d.tar.gz
Ninja-f70e4459d207f80be0ebbc2ba73bc28ac5042c5d.tar.bz2
Merge pull request #764 from nico/winconsole
Implement pool=console support on Windows.
Diffstat (limited to 'src/subprocess.h')
-rw-r--r--src/subprocess.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/subprocess.h b/src/subprocess.h
index 6ea6f62..b7a1a4c 100644
--- a/src/subprocess.h
+++ b/src/subprocess.h
@@ -44,14 +44,13 @@ struct Subprocess {
const string& GetOutput() const;
private:
+ Subprocess(bool use_console);
bool Start(struct SubprocessSet* set, const string& command);
void OnPipeReady();
string buf_;
#ifdef _WIN32
- Subprocess();
-
/// Set up pipe_ as the parent-side pipe of the subprocess; return the
/// other end of the pipe, usable in the child process.
HANDLE SetupPipe(HANDLE ioport);
@@ -62,8 +61,6 @@ struct Subprocess {
char overlapped_buf_[4 << 10];
bool is_reading_;
#else
- Subprocess(bool use_console);
-
int fd_;
pid_t pid_;
#endif