From fff544efbdd10434988a44e14c7c94389a283952 Mon Sep 17 00:00:00 2001 From: Sergey Dmitrouk Date: Mon, 8 Dec 2014 14:50:21 +0000 Subject: [PATCH] Explicitly include for sched_yield() It might be implicitly included by (and that's why it worked so far), but it's not guaranteed (for example, this is not the case with newlib). git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@223661 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/mutex | 1 + include/thread | 1 + 2 files changed, 2 insertions(+) diff --git a/include/mutex b/include/mutex index 9c263565..e2a0daa3 100644 --- a/include/mutex +++ b/include/mutex @@ -178,6 +178,7 @@ template #ifndef _LIBCPP_HAS_NO_VARIADICS #include #endif +#include #include <__undef_min_max> diff --git a/include/thread b/include/thread index 808d76b8..8a30102f 100644 --- a/include/thread +++ b/include/thread @@ -99,6 +99,7 @@ void sleep_for(const chrono::duration& rel_time); #include #endif #include +#include #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header