avoid old libstdc++ internals.
sparc64 is the odd one there, just fix it locally.
This commit is contained in:
parent
34795a4f2a
commit
2d7318b9da
@ -1,12 +1,15 @@
|
||||
$OpenBSD: patch-vmime_utility_smartPtrInt_hpp,v 1.1 2008/11/06 19:12:24 sturm Exp $
|
||||
--- vmime/utility/smartPtrInt.hpp.orig Wed Nov 5 10:40:02 2008
|
||||
+++ vmime/utility/smartPtrInt.hpp Wed Nov 5 10:40:18 2008
|
||||
@@ -53,7 +53,7 @@ class refCounter (private)
|
||||
$OpenBSD: patch-vmime_utility_smartPtrInt_hpp,v 1.2 2010/05/23 13:49:19 espie Exp $
|
||||
--- vmime/utility/smartPtrInt.hpp.orig Sun Oct 12 10:54:33 2008
|
||||
+++ vmime/utility/smartPtrInt.hpp Sun May 23 15:41:45 2010
|
||||
@@ -53,7 +53,11 @@ class refCounter (private)
|
||||
#if defined(_WIN32)
|
||||
long m_value;
|
||||
#elif defined(__GNUC__) && (defined(__GLIBCPP__) || defined(__GLIBCXX__))
|
||||
- mutable volatile int m_value;
|
||||
+ mutable volatile _Atomic_word m_value;
|
||||
+# if defined(__sparc64__)
|
||||
+ mutable volatile long m_value;
|
||||
+# else
|
||||
mutable volatile int m_value;
|
||||
+# endif
|
||||
#elif defined (VMIME_HAVE_PTHREAD)
|
||||
volatile long m_value;
|
||||
pthread_mutex_t m_mutex;
|
||||
|
Loading…
x
Reference in New Issue
Block a user