Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2018 21:03:19 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338028 - head/bin/ls
Message-ID:  <201808182103.w7IL3JYZ020716@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Sat Aug 18 21:03:19 2018
New Revision: 338028
URL: https://svnweb.freebsd.org/changeset/base/338028

Log:
  ls(1): Gate the do_color_* definitions behind COLORLS
  
  Pointy hat to:	me

Modified:
  head/bin/ls/ls.c

Modified: head/bin/ls/ls.c
==============================================================================
--- head/bin/ls/ls.c	Sat Aug 18 20:55:20 2018	(r338027)
+++ head/bin/ls/ls.c	Sat Aug 18 21:03:19 2018	(r338028)
@@ -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[])



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808182103.w7IL3JYZ020716>