From c2785590834dfe91574367f4256918c37b6ddfcc Mon Sep 17 00:00:00 2001 From: Ivan Vanyushkin Date: Thu, 29 Sep 2016 21:46:45 +0300 Subject: Fix build under Cygwin. --- src/stream.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/stream.cc') 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& output_file, void output_stream_t::close() { -#ifndef _WIN32 +#if !defined(_WIN32) && !defined(__CYGWIN__) if (os != &std::cout) { checked_delete(os); os = &std::cout; -- cgit v1.2.3