qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Avoid multiple inclusion of qemu-lock.h
@ 2009-01-26 21:28 Lionel Landwerlin
  0 siblings, 0 replies; only message in thread
From: Lionel Landwerlin @ 2009-01-26 21:28 UTC (permalink / raw)
  To: qemu-devel

Avoid multiple inclusion of qemu-lock.h

Signed-off-by: Lionel Landwerlin <lionel.landwerlin@openwide.fr>

diff --git a/qemu-lock.h b/qemu-lock.h
index 26661ba..ce1c466 100644
--- a/qemu-lock.h
+++ b/qemu-lock.h
@@ -24,6 +24,9 @@
    likely to release it soon.  In environments where you have more threads
    than physical CPUs (the extreme case being a single CPU host) a spinlock
    simply wastes CPU until the OS decides to preempt it.  */
+#ifndef QEMU_LOCK_H
+#define QEMU_LOCK_H
+
 #if defined(USE_NPTL)
 
 #include <pthread.h>
@@ -246,3 +249,5 @@ static inline int spin_trylock(spinlock_t *lock)
 #endif
 
 #endif
+
+#endif /* QEMU_LOCK_H */

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-26 21:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-26 21:28 [Qemu-devel] [PATCH] Avoid multiple inclusion of qemu-lock.h Lionel Landwerlin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).