The old version of boost included in this port assumes that GCC 4.1 and later
always provide the new atomic builtins. In reality those are only available on hardware that provides the necessary atomic instructions. PA-RISC doesn't have a suitable set of atomic instructions so work around it on hppa. ok espie@, bernd@, landry@
This commit is contained in:
parent
340b80751f
commit
89a38bc119
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-ext_boost_detail_atomic_count_hpp,v 1.1 2010/07/31 10:18:06 kettenis Exp $
|
||||
--- ext/boost/detail/atomic_count.hpp.orig Sat Dec 20 18:19:18 2008
|
||||
+++ ext/boost/detail/atomic_count.hpp Fri Jul 30 18:07:15 2010
|
||||
@@ -101,7 +101,7 @@ typedef long atomic_count;
|
||||
|
||||
# include <boost/detail/atomic_count_win32.hpp>
|
||||
|
||||
-#elif defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 )
|
||||
+#elif defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 ) && !defined( __hppa )
|
||||
|
||||
# include <boost/detail/atomic_count_sync.hpp>
|
||||
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-ext_boost_detail_sp_counted_base_hpp,v 1.1 2010/07/31 10:18:06 kettenis Exp $
|
||||
--- ext/boost/detail/sp_counted_base.hpp.orig Thu Mar 12 13:55:49 2009
|
||||
+++ ext/boost/detail/sp_counted_base.hpp Fri Jul 30 18:07:28 2010
|
||||
@@ -55,7 +55,7 @@
|
||||
|
||||
# include <boost/detail/sp_counted_base_gcc_sparc.hpp>
|
||||
|
||||
-#elif defined(__GNUC__) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 )
|
||||
+#elif defined(__GNUC__) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 ) && !defined( __hppa )
|
||||
|
||||
# include <boost/detail/sp_counted_base_sync.hpp>
|
||||
|
Loading…
Reference in New Issue
Block a user