summaryrefslogtreecommitdiff
path: root/contrib/libc++/src/algorithm.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-08-22 19:49:51 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-08-22 19:49:51 +0000
commit2f1cb2a6c9c3a63d61ea267fb9d81773616ea83b (patch)
treedfafd26b02c2aba8ba71862335377d6c0ccfb0ed /contrib/libc++/src/algorithm.cpp
parent14a0b2859e9d76204ca897de961b36344ce1e775 (diff)
parent1147845301c03308e3419b89c28c77bb6917fe04 (diff)
Notes
Diffstat (limited to 'contrib/libc++/src/algorithm.cpp')
-rw-r--r--contrib/libc++/src/algorithm.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/contrib/libc++/src/algorithm.cpp b/contrib/libc++/src/algorithm.cpp
index f036eb7abe1c..a110ae8b1a6e 100644
--- a/contrib/libc++/src/algorithm.cpp
+++ b/contrib/libc++/src/algorithm.cpp
@@ -1,15 +1,19 @@
//===----------------------- algorithm.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
//
//===----------------------------------------------------------------------===//
#include "algorithm"
#include "random"
+#ifndef _LIBCPP_HAS_NO_THREADS
#include "mutex"
+#if defined(__unix__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
+#pragma comment(lib, "pthread")
+#endif
+#endif
_LIBCPP_BEGIN_NAMESPACE_STD