summaryrefslogtreecommitdiff
path: root/src/shared_mutex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared_mutex.cpp')
-rw-r--r--src/shared_mutex.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/shared_mutex.cpp b/src/shared_mutex.cpp
index 6185f15deabd..eb3f5f3506f5 100644
--- a/src/shared_mutex.cpp
+++ b/src/shared_mutex.cpp
@@ -1,9 +1,8 @@
//===---------------------- shared_mutex.cpp ------------------------------===//
//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
@@ -11,6 +10,9 @@
#ifndef _LIBCPP_HAS_NO_THREADS
#include "shared_mutex"
+#if defined(__unix__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
+#pragma comment(lib, "pthread")
+#endif
_LIBCPP_BEGIN_NAMESPACE_STD