ports/mail/mu/patches/patch-mu_mu-options_cc

15 lines
380 B
Text

:: doesn't work on macro expansion
Index: mu/mu-options.cc
--- mu/mu-options.cc.orig
+++ mu/mu-options.cc
@@ -630,8 +630,8 @@ bool
Options::default_no_color()
{
static const auto no_color =
- !::isatty(::fileno(stdout)) ||
- !::isatty(::fileno(stderr)) ||
+ !::isatty(fileno(stdout)) ||
+ !::isatty(fileno(stderr)) ||
::getenv("NO_COLOR") != NULL;
return no_color;