qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Lionel Landwerlin <lionel.landwerlin@openwide.fr>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Avoid multiple inclusion of qemu-lock.h
Date: Mon, 26 Jan 2009 22:28:29 +0100	[thread overview]
Message-ID: <1233005309.8934.7.camel@cocoduo.atr> (raw)

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 */

                 reply	other threads:[~2009-01-26 21:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1233005309.8934.7.camel@cocoduo.atr \
    --to=lionel.landwerlin@openwide.fr \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).