$NetBSD: patch-ad,v 1.10 2025/04/28 11:05:35 wiz Exp $ SunOS needs alloca.h. --- include/global.h.orig 2025-04-14 16:42:04.000000000 +0000 +++ include/global.h @@ -30,7 +30,6 @@ #warning "use #include , should not be used directly" #include #endif - #ifndef __ALSA_GLOBAL_H_ #define __ALSA_GLOBAL_H_ @@ -38,6 +37,14 @@ extern "C" { #endif +#if defined(__FreeBSD__) +#include +#endif + +#ifdef __sun +#include +#endif + /** * \defgroup Global Global defines and functions * Global defines and functions.