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/quotes.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/quotes.cc') diff --git a/src/quotes.cc b/src/quotes.cc index 0dd9c4ed..cef9b713 100644 --- a/src/quotes.cc +++ b/src/quotes.cc @@ -62,7 +62,7 @@ commodity_quote_from_script(commodity_t& commodity, DEBUG("commodity.download", "invoking command: " << getquote_cmd); bool success = true; -#ifndef _WIN32 +#if !defined(_WIN32) && !defined(__CYGWIN__) if (FILE * fp = popen(getquote_cmd.c_str(), "r")) { if (std::feof(fp) || ! std::fgets(buf, 255, fp)) success = false; -- cgit v1.2.3