pkgsrc/editors/mule/patches/patch-src_ralloc_c
dholland 918e692115 Adjust the amd64 patch by crosschecking the existing header for alpha.
Patch extensive use of malloc and alloca without <stdlib.h> and some
other stuff that showed up in the build log.

Still crashes in temacs but it's getting much farther.
2011-12-24 17:07:07 +00:00

24 lines
552 B
Text

$NetBSD: patch-src_ralloc_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- src/ralloc.c~ 1993-11-18 09:23:35.000000000 +0000
+++ src/ralloc.c
@@ -25,6 +25,8 @@ the Free Software Foundation, 675 Mass A
#ifdef emacs
+#include <stdlib.h>
+#include <string.h>
#include <config.h>
#include "lisp.h" /* Needed for VALBITS. */
@@ -66,7 +68,7 @@ typedef size_t SIZE;
typedef void *POINTER;
#include <unistd.h>
-#include <malloc.h>
+#include <stdlib.h>
#include <string.h>
#define safe_bcopy(x, y, z) memmove (y, x, z)