From 70a5829787c21d190f3e6abc79c45ea6bc8833a0 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 25 Sep 2025 16:58:00 -0700 Subject: [PATCH] xfree86: add missing headers to build sun_init.c on Solaris/SPARC Fixes: 0f715b4ca ("xfree86: os-support: move hidden Solaris-specific symbols out of public header") Fixes: e2fa0d2ae ("fix including ") Signed-off-by: Alan Coopersmith Part-of: (cherry picked from commit c62cd2feaadaa49c385e277bb97fa7e3b48e3c4f) --- hw/xfree86/os-support/solaris/sun_init.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw/xfree86/os-support/solaris/sun_init.c b/hw/xfree86/os-support/solaris/sun_init.c index 4a42824cd..d295b464c 100644 --- a/hw/xfree86/os-support/solaris/sun_init.c +++ b/hw/xfree86/os-support/solaris/sun_init.c @@ -36,6 +36,11 @@ #include #endif +#if !defined(__i386__) && !defined(__i386) && !defined(__x86) +#include +#include +#endif + /* * Applications see VT number as consecutive integers starting from 1. * VT number VT device