summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2014-09-24 18:35:58 +0000
committerChris Bieneman <beanz@apple.com>2014-09-24 18:35:58 +0000
commit7827217131ffe946e2b44eb87b66cb13a36fb98d (patch)
tree5321fd0d3fb29774be2f29a8af1bf359024201ce /llvm/lib/Support
parent8f63ae1d4c037f2adac1d62e366678b20cb980cc (diff)
downloadbcm5719-llvm-7827217131ffe946e2b44eb87b66cb13a36fb98d.tar.gz
bcm5719-llvm-7827217131ffe946e2b44eb87b66cb13a36fb98d.zip
Adding #ifdef around TermColorMutex based on feedback from Craig Topper.
llvm-svn: 218401
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Unix/Process.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Unix/Process.inc b/llvm/lib/Support/Unix/Process.inc
index 566684ff5eb..4d272fd6b4b 100644
--- a/llvm/lib/Support/Unix/Process.inc
+++ b/llvm/lib/Support/Unix/Process.inc
@@ -264,7 +264,9 @@ extern "C" int del_curterm(struct term *termp);
extern "C" int tigetnum(char *capname);
#endif
+#ifdef HAVE_TERMINFO
static ManagedStatic<sys::Mutex> TermColorMutex;
+#endif
static bool terminalHasColors(int fd) {
#ifdef HAVE_TERMINFO
OpenPOWER on IntegriCloud