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.
(cherry picked from commit 892d04733fdbe09a62ebad1c910360bba918a779)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
diff --git a/include/import/plock.h b/include/import/plock.h
index 3a71e64..41d2a26 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 <sched.h>
@@ -1381,3 +1384,5 @@
else
pl_lorw_rdunlock(lock);
}
+
+#endif /* PL_PLOCK_H */