This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Define std::promise::set_value_at_thread_exit() etc.


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)
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]