$NetBSD: patch-ac,v 1.4 2006/07/22 04:23:29 minskim Exp $ --- mapmalloc.c.orig 2003-01-28 12:04:25.000000000 -0800 +++ mapmalloc.c @@ -54,6 +54,9 @@ #include #include #include +#if defined(__INTERIX) +#include +#endif #ifdef __GLIBC__ /* * Broken GNU libc will include stdlib.h with conflicting @@ -551,7 +554,11 @@ size_t alignment, size; } /*ARGSUSED*/ +#if defined(__DragonFly__) || defined(__APPLE__) +void * +#else char * +#endif valloc(size) size_t size; {