From 892d04733fdbe09a62ebad1c910360bba918a779 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sat, 26 Aug 2023 17:27:24 +0200 Subject: [PATCH] BUILD: import: guard plock.h against multiple inclusion Surprisingly there's no include guard in plock.h though there is one in atomic-ops.h. Let's add one, or we cannot risk including the file multiple times. --- include/import/plock.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/import/plock.h b/include/import/plock.h index 4fc258d0bc..0ac7020b1b 100644 --- a/include/import/plock.h +++ b/include/import/plock.h @@ -23,6 +23,9 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +#ifndef PL_PLOCK_H +#define PL_PLOCK_H + #include "atomic-ops.h" #ifdef _POSIX_PRIORITY_SCHEDULING #include @@ -1415,3 +1418,5 @@ static inline void pl_lorw_unlock(unsigned long *lock) else pl_lorw_rdunlock(lock); } + +#endif /* PL_PLOCK_H */