Skip to content

Commit

Permalink
ls(1): Gate the do_color_* definitions behind COLORLS
Browse files Browse the repository at this point in the history
Pointy hat to:	me
  • Loading branch information
kevans91 committed Aug 18, 2018
1 parent 91e26ee commit 6fa37eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/ls/ls.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ do_color(void)
return (do_color_from_env());
}

#ifdef COLORLS
static bool
do_color_always(const char *term)
{
Expand All @@ -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[])
Expand Down

0 comments on commit 6fa37eb

Please sign in to comment.