summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lib/Support/Unix/Process.inc
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2019-01-27 16:55:35 +0000
committerpatrick <patrick@openbsd.org>2019-01-27 16:55:35 +0000
commit5072e66b18f5d3ac6abf1c18a092e85eab2d7568 (patch)
treed93c84a9aeb44438542c3be0110f7bbb2c62a074 /gnu/llvm/lib/Support/Unix/Process.inc
parentImport LLVM 7.0.1 release including clang, lld and lldb. (diff)
downloadwireguard-openbsd-5072e66b18f5d3ac6abf1c18a092e85eab2d7568.tar.xz
wireguard-openbsd-5072e66b18f5d3ac6abf1c18a092e85eab2d7568.zip
Merge LLVM 7.0.1 release.
With fixes from mortimer@ (thanks!) Tested by many, especially naddy@ (thanks!)
Diffstat (limited to 'gnu/llvm/lib/Support/Unix/Process.inc')
-rw-r--r--gnu/llvm/lib/Support/Unix/Process.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/llvm/lib/Support/Unix/Process.inc b/gnu/llvm/lib/Support/Unix/Process.inc
index 3185f45a3a6..1d8a6c8a8db 100644
--- a/gnu/llvm/lib/Support/Unix/Process.inc
+++ b/gnu/llvm/lib/Support/Unix/Process.inc
@@ -331,6 +331,10 @@ static ManagedStatic<sys::Mutex> TermColorMutex;
#endif
static bool terminalHasColors(int fd) {
+#if defined(__OpenBSD__)
+ return false;
+#endif
+
#ifdef HAVE_TERMINFO
// First, acquire a global lock because these C routines are thread hostile.
MutexGuard G(*TermColorMutex);