Skip to content

Commit

Permalink
futex: add missing header guards
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Michael Tokarev <[email protected]>
  • Loading branch information
cota authored and Michael Tokarev committed Oct 16, 2017
1 parent 70857ad commit f3245d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/qemu/futex.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
*
*/

#ifndef QEMU_FUTEX_H
#define QEMU_FUTEX_H

#include <sys/syscall.h>
#include <linux/futex.h>

Expand All @@ -34,3 +37,5 @@ static inline void qemu_futex_wait(void *f, unsigned val)
}
}
}

#endif /* QEMU_FUTEX_H */

0 comments on commit f3245d6

Please sign in to comment.