mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
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.
This commit is contained in:
parent
a7b9baa2cc
commit
892d04733f
@ -23,6 +23,9 @@
|
|||||||
* OTHER DEALINGS IN THE SOFTWARE.
|
* OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef PL_PLOCK_H
|
||||||
|
#define PL_PLOCK_H
|
||||||
|
|
||||||
#include "atomic-ops.h"
|
#include "atomic-ops.h"
|
||||||
#ifdef _POSIX_PRIORITY_SCHEDULING
|
#ifdef _POSIX_PRIORITY_SCHEDULING
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
@ -1415,3 +1418,5 @@ static inline void pl_lorw_unlock(unsigned long *lock)
|
|||||||
else
|
else
|
||||||
pl_lorw_rdunlock(lock);
|
pl_lorw_rdunlock(lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* PL_PLOCK_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user