From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRZ0U-0002jm-C6 for qemu-devel@nongnu.org; Mon, 26 Jan 2009 16:28:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRZ0T-0002iu-KJ for qemu-devel@nongnu.org; Mon, 26 Jan 2009 16:28:33 -0500 Received: from [199.232.76.173] (port=59027 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRZ0S-0002iO-SS for qemu-devel@nongnu.org; Mon, 26 Jan 2009 16:28:33 -0500 Received: from soufre.accelance.net ([213.162.48.15]:52751) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LRZ0S-0007Dn-Gh for qemu-devel@nongnu.org; Mon, 26 Jan 2009 16:28:32 -0500 Received: from [192.168.0.3] (potipota.net [88.168.176.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by soufre.accelance.net (Postfix) with ESMTP id 319854501A for ; Mon, 26 Jan 2009 22:28:30 +0100 (CET) From: Lionel Landwerlin Content-Type: text/plain Date: Mon, 26 Jan 2009 22:28:29 +0100 Message-Id: <1233005309.8934.7.camel@cocoduo.atr> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] Avoid multiple inclusion of qemu-lock.h Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Avoid multiple inclusion of qemu-lock.h Signed-off-by: Lionel Landwerlin 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 @@ -246,3 +249,5 @@ static inline int spin_trylock(spinlock_t *lock) #endif #endif + +#endif /* QEMU_LOCK_H */