projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70857ad
)
futex: add missing header guards
author
Emilio G. Cota
<cota@braap.org>
Fri, 13 Oct 2017 21:30:20 +0000
(17:30 -0400)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Mon, 16 Oct 2017 17:57:13 +0000
(20:57 +0300)
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 <cota@braap.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
include/qemu/futex.h
patch
|
blob
|
history
diff --git
a/include/qemu/futex.h
b/include/qemu/futex.h
index bb7dc9e296c17e6790fcd2fcbb16a1c5ca23309e..91ae88966e12e939d9abca82f625c9a88e0b596d 100644
(file)
--- a/
include/qemu/futex.h
+++ b/
include/qemu/futex.h
@@
-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 */