$NetBSD: patch-ad,v 1.9 2024/02/21 08:58:00 wiz Exp $ SunOS needs alloca.h. --- include/global.h.orig 2024-01-29 16:16:07.000000000 +0000 +++ include/global.h @@ -30,6 +30,13 @@ /* for timeval and timespec */ #include +#if defined(__FreeBSD__) +#include +#endif + +#ifdef __sun +#include +#endif #ifdef __cplusplus extern "C" {