From 517d0a9043bef8d4a4f1e69ca87465a2b7a0378e Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Sat, 18 Aug 2018 21:03:19 +0000 Subject: ls(1): Gate the do_color_* definitions behind COLORLS Pointy hat to: me --- bin/ls/ls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/ls/ls.c b/bin/ls/ls.c index 19effce3d195..3929dd47be5a 100644 --- a/bin/ls/ls.c +++ b/bin/ls/ls.c @@ -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[]) -- cgit v1.2.3