freebsd-ports/net-p2p/eiskaltdcpp-lib/files/patch-dcpp-Atomic.h
Max Brazhnikov 5671b14afb Add patches to fix build with boost-1.48.0
PR:		ports/156253
Submitted by:	Alexander Churanov
Approved by:	portmgr (linimon)
2012-05-16 16:09:15 +00:00

25 lines
1,000 B
C++

--- dcpp/Atomic.h.orig 2012-01-27 21:20:06.000000000 +0300
+++ dcpp/Atomic.h 2012-01-27 21:21:11.000000000 +0300
@@ -57,18 +57,18 @@
// type cast
operator value_type() const {
- return boost::interprocess::detail::atomic_read32(&m_value);
+ return boost::interprocess::ipcdetail::atomic_read32(&m_value);
}
// increment
- void inc() { boost::interprocess::detail::atomic_inc32(&m_value); }
+ void inc() { boost::interprocess::ipcdetail::atomic_inc32(&m_value); }
// decrement
- void dec() { boost::interprocess::detail::atomic_dec32(&m_value); }
+ void dec() { boost::interprocess::ipcdetail::atomic_dec32(&m_value); }
private:
mutable value_type m_value;
- void assign(value_type val) { boost::interprocess::detail::atomic_write32(&m_value, val); }
+ void assign(value_type val) { boost::interprocess::ipcdetail::atomic_write32(&m_value, val); }
};
// int32_t