summaryrefslogtreecommitdiff
path: root/editors/ex/patches/patch-ac
blob: f3927c9b8f166949e165089762c7b70ec255c3da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-ac,v 1.3 2005/12/09 14:10:39 joerg Exp $

--- mapmalloc.c.orig	2003-01-28 20:04:25.000000000 +0000
+++ 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__)
+void *
+#else
 char *
+#endif
 valloc(size)
 size_t size;
 {