fix build on sparc64

ok ajacoutot
This commit is contained in:
sturm 2008-11-06 19:12:24 +00:00
parent 859f068437
commit 4587fb41ee
2 changed files with 14 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.4 2008/11/04 15:35:56 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.5 2008/11/06 19:12:24 sturm Exp $
COMMENT= C++ class library for working with Internet mail
DISTNAME= libvmime-0.9.0
PKGNAME= ${DISTNAME}p0
PKGNAME= ${DISTNAME}p1
CATEGORIES= devel mail
SHARED_LIBS+= vmime 1.0 # .0.0

View File

@ -0,0 +1,12 @@
$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)
#if defined(_WIN32)
long m_value;
#elif defined(__GNUC__) && (defined(__GLIBCPP__) || defined(__GLIBCXX__))
- mutable volatile int m_value;
+ mutable volatile _Atomic_word m_value;
#elif defined (VMIME_HAVE_PTHREAD)
volatile long m_value;
pthread_mutex_t m_mutex;