From 9358b4acee20197e4d18627fd5ff8621eee6b76e Mon Sep 17 00:00:00 2001 From: xiongjiwei Date: Mon, 23 Jun 2025 06:10:25 +0000 Subject: [PATCH] add include guard in rwlock.h --- src/bthread/rwlock.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bthread/rwlock.h b/src/bthread/rwlock.h index a2708b9903..295e643f06 100644 --- a/src/bthread/rwlock.h +++ b/src/bthread/rwlock.h @@ -15,6 +15,9 @@ // specific language governing permissions and limitations // under the License. +#ifndef BTHREAD_RWLOCK_H +#define BTHREAD_RWLOCK_H + #include "bthread/types.h" #include "bthread/bthread.h" #include "butil/scoped_lock.h" @@ -212,3 +215,5 @@ class lock_guard { }; } // namespace std + +#endif //BTHREAD_RWLOCK_H