[llvm] r218401 - Adding #ifdef around TermColorMutex based on feedback from Craig Topper.

Chris Bieneman beanz at apple.com
Wed Sep 24 11:35:58 PDT 2014


Author: cbieneman
Date: Wed Sep 24 13:35:58 2014
New Revision: 218401

URL: http://llvm.org/viewvc/llvm-project?rev=218401&view=rev
Log:
Adding #ifdef around TermColorMutex based on feedback from Craig Topper.

Modified:
    llvm/trunk/lib/Support/Unix/Process.inc

Modified: llvm/trunk/lib/Support/Unix/Process.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Process.inc?rev=218401&r1=218400&r2=218401&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Process.inc (original)
+++ llvm/trunk/lib/Support/Unix/Process.inc Wed Sep 24 13:35:58 2014
@@ -264,7 +264,9 @@ extern "C" int del_curterm(struct term *
 extern "C" int tigetnum(char *capname);
 #endif
 
+#ifdef HAVE_TERMINFO
 static ManagedStatic<sys::Mutex> TermColorMutex;
+#endif
 
 static bool terminalHasColors(int fd) {
 #ifdef HAVE_TERMINFO





More information about the llvm-commits mailing list