From ccfa7e9f2e0c05a2a2e3d4577c821192960ceac9 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 18 Mar 2024 16:06:43 +0100 Subject: [PATCH] Fix missing include of Instead of relying on indirect includes, it's much cleaner if everybody includes directly what he needs. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- hw/xfree86/os-support/xf86_OSlib.h | 2 -- os/backtrace.c | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/os-support/xf86_OSlib.h b/hw/xfree86/os-support/xf86_OSlib.h index 12992914c..60bcb593f 100644 --- a/hw/xfree86/os-support/xf86_OSlib.h +++ b/hw/xfree86/os-support/xf86_OSlib.h @@ -314,8 +314,6 @@ struct pcvtid { /* Generic */ /**************************************************************************/ -#include /* May need to adjust this for other OSs */ - /* For PATH_MAX */ #include "misc.h" diff --git a/os/backtrace.c b/os/backtrace.c index 8025bffae..e4cb91b1c 100644 --- a/os/backtrace.c +++ b/os/backtrace.c @@ -27,9 +27,14 @@ #include "os.h" #include "misc.h" + #include #include +#ifndef WIN32 +#include +#endif + #ifdef HAVE_LIBUNWIND #define UNW_LOCAL_ONLY