From: Sage Weil Date: Wed, 23 Sep 2015 21:06:52 +0000 (-0400) Subject: common/RWLock: include assert X-Git-Tag: v0.80.11~34^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2e09a2c22ab885f8ec81dbc55f2c8fc0f2984543;p=ceph.git common/RWLock: include assert Fixes atomic_t build issue without libatomic-ops. Fixes: #13088 Signed-off-by: Sage Weil --- diff --git a/src/common/RWLock.h b/src/common/RWLock.h index 1a70ef1d2b1..308092c60e8 100644 --- a/src/common/RWLock.h +++ b/src/common/RWLock.h @@ -19,6 +19,7 @@ #include #include "lockdep.h" +#include "include/assert.h" #include "include/atomic.h" class RWLock @@ -26,7 +27,7 @@ class RWLock mutable pthread_rwlock_t L; const char *name; mutable int id; - mutable atomic_t nrlock, nwlock; + mutable ceph::atomic_t nrlock, nwlock; public: RWLock(const RWLock& other);