summaryrefslogtreecommitdiff
path: root/src/stream.cc
diff options
context:
space:
mode:
authorIvan Vanyushkin <vanav@vanav.org>2016-09-29 21:46:45 +0300
committerIvan Vanyushkin <vanav@vanav.org>2016-09-29 21:46:45 +0300
commitc2785590834dfe91574367f4256918c37b6ddfcc (patch)
tree9fa8e9ac135f1ad9f1e5d09d20606aea0ac0dc86 /src/stream.cc
parent258cab91ab702e82d477b41bb1c6a026c848bda5 (diff)
downloadfork-ledger-c2785590834dfe91574367f4256918c37b6ddfcc.tar.gz
fork-ledger-c2785590834dfe91574367f4256918c37b6ddfcc.tar.bz2
fork-ledger-c2785590834dfe91574367f4256918c37b6ddfcc.zip
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;