From 069708d49c14e1b6292dc3ff86c420ac597cbb24 Mon Sep 17 00:00:00 2001 From: linear cannon Date: Tue, 5 Aug 2025 08:02:16 -0400 Subject: [PATCH] Fix building on Haiku Various build issues on Haiku, mostly involving system headers having fields clobbered by cpu-related defines, can be fixed simply by including stdlib.h at the top of 86box.h. --- src/include/86box/86box.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/include/86box/86box.h b/src/include/86box/86box.h index 4494290d6..a8b0df1ee 100644 --- a/src/include/86box/86box.h +++ b/src/include/86box/86box.h @@ -25,6 +25,11 @@ #include #endif +#if defined(__HAIKU__) +/* Doesn't compile on Haiku without this include */ +#include +#endif + /* Configuration values. */ #define GFXCARD_MAX 2 #define SERIAL_MAX 8