From 2e09a2c22ab885f8ec81dbc55f2c8fc0f2984543 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 23 Sep 2015 17:06:52 -0400 Subject: [PATCH] common/RWLock: include assert Fixes atomic_t build issue without libatomic-ops. Fixes: #13088 Signed-off-by: Sage Weil --- src/common/RWLock.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/RWLock.h b/src/common/RWLock.h index 1a70ef1d2b13..308092c60e83 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); -- 2.47.3