summaryrefslogtreecommitdiff
path: root/src/stream.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2016-10-02 10:32:25 -0700
committerGitHub <noreply@github.com>2016-10-02 10:32:25 -0700
commitca9877ff417325ce35848c96f46f23a334e53bfe (patch)
tree3675bd14ef1947dffd9da8a9a8327961d5a5b17c /src/stream.cc
parentcd58d43228996198b5ba329f7c05109f2aaee65a (diff)
parentc2785590834dfe91574367f4256918c37b6ddfcc (diff)
downloadfork-ledger-ca9877ff417325ce35848c96f46f23a334e53bfe.tar.gz
fork-ledger-ca9877ff417325ce35848c96f46f23a334e53bfe.tar.bz2
fork-ledger-ca9877ff417325ce35848c96f46f23a334e53bfe.zip
Merge pull request #468 from Vanav/cygwin_fix
Fix build under Cygwin
Diffstat (limited to 'src/stream.cc')
-rw-r--r--src/stream.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stream.cc b/src/stream.cc
index 0c3ed995..e07fd61d 100644
--- a/src/stream.cc
+++ b/src/stream.cc
@@ -58,7 +58,7 @@ namespace {
*/
int do_fork(std::ostream ** os, const path& pager_path)
{
-#ifndef _WIN32
+#if !defined(_WIN32) && !defined(__CYGWIN__)
int pfd[2];
int status = pipe(pfd);
@@ -115,7 +115,7 @@ void output_stream_t::initialize(const optional<path>& output_file,
void output_stream_t::close()
{
-#ifndef _WIN32
+#if !defined(_WIN32) && !defined(__CYGWIN__)
if (os != &std::cout) {
checked_delete(os);
os = &std::cout;