ls(1): Gate the do_color_* definitions behind COLORLS

Pointy hat to:	me
This commit is contained in:
kevans 2018-08-18 21:03:19 +00:00
parent 91e26ee413
commit 6fa37eb588

View File

@ -200,6 +200,7 @@ do_color(void)
return (do_color_from_env());
}
#ifdef COLORLS
static bool
do_color_always(const char *term)
{
@ -223,6 +224,7 @@ do_color_auto(const char *term)
return (strcmp(term, "auto") == 0 || strcmp(term, "tty") == 0 ||
strcmp(term, "if-tty") == 0);
}
#endif /* COLORLS */
int
main(int argc, char *argv[])