This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] Define std::promise::set_value_at_thread_exit() etc.
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: Gerald Pfeifer <gerald at pfeifer dot com>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, John David Anglin <dave dot anglin at bell dot net>
- Date: Wed, 3 Dec 2014 01:34:52 +0000
- Subject: Re: [patch] Define std::promise::set_value_at_thread_exit() etc.
- Authentication-results: sourceware.org; auth=none
- References: <20141023160037 dot GZ3033 at redhat dot com> <20141202015126 dot GA3134 at redhat dot com> <alpine dot LSU dot 2 dot 11 dot 1412030210170 dot 19968 at tuna dot site>
On 03/12/14 02:12 +0100, Gerald Pfeifer wrote:
This breaks FreeBSD (both 8 and 10) from what I can tell.
[...]
: error: 'atexit' is not a member of 'std'
std::atexit (run);
^
I've just committed this at r218300 which I hope will fix it.
Sorry for the breakage.
commit e256537afe817f0f785e7b70f3e231118eaf1e71
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Dec 3 01:21:03 2014 +0000
PR libstdc++/64161
* src/c++11/condition_variable.cc: Include <cstdlib>.
diff --git a/libstdc++-v3/src/c++11/condition_variable.cc b/libstdc++-v3/src/c++11/condition_variable.cc
index c2768eb..d3c7fcd 100644
--- a/libstdc++-v3/src/c++11/condition_variable.cc
+++ b/libstdc++-v3/src/c++11/condition_variable.cc
@@ -23,6 +23,7 @@
// <http://www.gnu.org/licenses/>.
#include <condition_variable>
+#include <cstdlib>
#if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1)