diff options
Diffstat (limited to 'src/algorithm.cpp')
-rw-r--r-- | src/algorithm.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/algorithm.cpp b/src/algorithm.cpp index f036eb7abe1c5..a110ae8b1a6ee 100644 --- a/src/algorithm.cpp +++ b/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 |