$NetBSD: patch-ak,v 1.3 2000/02/05 19:51:44 wiz Exp $ --- wrapper.c.orig Sat Nov 27 17:43:56 1999 +++ wrapper.c Sat Nov 27 17:45:54 1999 @@ -16,10 +16,14 @@ #include <stdio.h> #include <sysexits.h> -#if defined(sun) && defined(sparc) +#if (defined(sun) && defined(sparc)) || defined(__NetBSD__) #include <stdlib.h> #endif +#ifdef __NetBSD__ +#include <sys/types.h> +#include <unistd.h> +#endif #ifndef STRCHR # include <string.h>