pkgsrc/editors/ex/patches/patch-ac
2006-07-22 04:23:29 +00:00

26 lines
521 B
Text

$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 <fcntl.h>
#include <errno.h>
#include <limits.h>
+#if defined(__INTERIX)
+#include <stdlib.h>
+#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;
{