futex: add missing header guards
PATCH 1/1 futex: add missing header guards
The header file was introduced by fbcc3e5 ("qemu-thread: optimize QemuLockCnt with futexes on Linux", 2017-01-16) without header guards. Add them.
Signed-off-by Emilio G. Cota <[email protected]>
--- include/qemu/futex.h | 5 +++++ 1 file changed, 5 insertions(+)
include/qemu/futex.h +5 -0
@@ -11,6 +11,9 @@* */ +#ifndef QEMU_FUTEX_H +#define QEMU_FUTEX_H +#include <sys/syscall.h> #include <linux/futex.h>
@@ -34,3 +37,5 @@ static inline void qemu_futex_wait(void *f, unsigned val) } } } + +#endif /* QEMU_FUTEX_H */
Signature · 1 line
2.7.4
Cc trivial
Quoted 4 lines · Emilio G. Cota
The header file was introduced by fbcc3e5 ("qemu-thread: optimize QemuLockCnt with futexes on Linux", 2017-01-16) without header guards. Add them.
Signed-off-by Emilio G. Cota <[email protected]>
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Quoted 25 lines
--- include/qemu/futex.h | 5 +++++ 1 file changed, 5 insertions(+)include/qemu/futex.h +5
-0@@ -11,6 +11,9 @@* */ +#ifndef QEMU_FUTEX_H +#define QEMU_FUTEX_H +#include <sys/syscall.h> #include <linux/futex.h> @@ -34,3 +37,5 @@ static inline void qemu_futex_wait(void *f, unsigned val) } } } + +#endif /* QEMU_FUTEX_H */