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.
This commit is contained in:
linear cannon
2025-08-05 08:02:16 -04:00
parent f79b9569da
commit 069708d49c

View File

@@ -25,6 +25,11 @@
#include <stdarg.h>
#endif
#if defined(__HAIKU__)
/* Doesn't compile on Haiku without this include */
#include <stdlib.h>
#endif
/* Configuration values. */
#define GFXCARD_MAX 2
#define SERIAL_MAX 8