From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MkLxY-0004wZ-Rr for qemu-devel@nongnu.org; Sun, 06 Sep 2009 13:55:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MkLxU-0004tq-5a for qemu-devel@nongnu.org; Sun, 06 Sep 2009 13:55:28 -0400 Received: from [199.232.76.173] (port=41472 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkLxU-0004tm-0Z for qemu-devel@nongnu.org; Sun, 06 Sep 2009 13:55:24 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:52647) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MkLxT-0008AF-4I for qemu-devel@nongnu.org; Sun, 06 Sep 2009 13:55:23 -0400 From: Stefan Weil Date: Sun, 6 Sep 2009 19:55:12 +0200 Message-Id: <1252259712-11122-1-git-send-email-weil@mail.berlios.de> Subject: [Qemu-devel] [PATCH] Fix conditional compilation (MIPS host) List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Compilation for MIPS host (not part of official QEMU) checks __mips_isa_rev which is not always defined. Signed-off-by: Stefan Weil --- cpu-all.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index 1a6a812..ebe8bfb 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -1021,7 +1021,7 @@ static inline int64_t cpu_get_real_ticks (void) static inline int64_t cpu_get_real_ticks(void) { -#if __mips_isa_rev >= 2 +#if defined(__mips_isa_rev) && __mips_isa_rev >= 2 uint32_t count; static uint32_t cyc_per_count = 0; -- 1.5.6.5