c78952
From f45946a92377c83ffcad8dbc3298fc26072567d9 Mon Sep 17 00:00:00 2001
ec4acb
From: Javier Martinez Canillas <javierm@redhat.com>
ec4acb
Date: Tue, 6 Feb 2018 11:16:28 +0100
31cddd
Subject: [PATCH] Don't attempt to backtrace on grub_abort() for
ec4acb
 grub-emu
ec4acb
ec4acb
The emu platform doesn't have a grub_backtrace() implementation, so this
ec4acb
causes a build error. Don't attempt to call this when building grub-emu.
ec4acb
ec4acb
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
ec4acb
---
ec4acb
 grub-core/kern/misc.c | 2 +-
ec4acb
 1 file changed, 1 insertion(+), 1 deletion(-)
ec4acb
ec4acb
diff --git a/grub-core/kern/misc.c b/grub-core/kern/misc.c
ec4acb
index 04371ac49f2..636f97e1ba1 100644
ec4acb
--- a/grub-core/kern/misc.c
ec4acb
+++ b/grub-core/kern/misc.c
ec4acb
@@ -1103,7 +1103,7 @@ static void __attribute__ ((noreturn))
ec4acb
 grub_abort (void)
ec4acb
 {
ec4acb
 #ifndef GRUB_UTIL
ec4acb
-#if defined(__i386__) || defined(__x86_64__)
ec4acb
+#if (defined(__i386__) || defined(__x86_64__)) && !defined(GRUB_MACHINE_EMU)
ec4acb
   grub_backtrace();
ec4acb
 #endif
ec4acb
 #endif