From 9f78d548e5fa9a7970c4b5c661a7de9ec43dae2e Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 17 Jun 2024 20:45:51 +0200 Subject: [PATCH] fix FTBS on NetBSD MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../hw/xfree86/os-support/bsd/bsd_init.c: In function ‘xf86CloseConsole’: ../hw/xfree86/os-support/xf86_os_support.h:22:6: error: ‘dispatchException’ undeclared (first use in this function) 22 | if (dispatchException & DE_TERMINATE) { \ | ^~~~~~~~~~~~~~~~~ ../hw/xfree86/os-support/bsd/bsd_init.c:634:13: note: in expansion of macro ‘xf86FatalError’ 634 | xf86FatalError("xf86CloseConsole: KDDISABIO failed (%s)", | ^~~~~~~~~~~~~~ ../hw/xfree86/os-support/xf86_os_support.h:22:6: note: each undeclared identifier is reported only once for each function it appears in 22 | if (dispatchException & DE_TERMINATE) { \ | ^~~~~~~~~~~~~~~~~ ../hw/xfree86/os-support/bsd/bsd_init.c:634:13: note: in expansion of macro ‘xf86FatalError’ 634 | xf86FatalError("xf86CloseConsole: KDDISABIO failed (%s)", | ^~~~~~~~~~~~~~ ../hw/xfree86/os-support/xf86_os_support.h:22:26: error: ‘DE_TERMINATE’ undeclared (first use in this function); did you mean ‘ACTION_TERMINATE’? 22 | if (dispatchException & DE_TERMINATE) { \ | ^~~~~~~~~~~~ ../hw/xfree86/os-support/bsd/bsd_init.c:634:13: note: in expansion of macro ‘xf86FatalError’ 634 | xf86FatalError("xf86CloseConsole: KDDISABIO failed (%s)", | ^~~~~~~~~~~~~~ Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- hw/xfree86/os-support/xf86_os_support.h | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/xfree86/os-support/xf86_os_support.h b/hw/xfree86/os-support/xf86_os_support.h index a45716cf4..a2fc99912 100644 --- a/hw/xfree86/os-support/xf86_os_support.h +++ b/hw/xfree86/os-support/xf86_os_support.h @@ -11,6 +11,7 @@ #include #include "os.h" +#include "dix/dix_priv.h" /* * This is to prevent re-entrancy to FatalError() when aborting.