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