918e692115
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.
25 lines
690 B
Text
25 lines
690 B
Text
$NetBSD: patch-ag,v 1.3 2011/12/24 17:07:07 dholland Exp $
|
|
|
|
- use standard headers
|
|
- declare external symbols properly
|
|
|
|
--- src/coding.c.orig 1996-09-28 00:41:51.000000000 +0000
|
|
+++ src/coding.c
|
|
@@ -123,6 +123,8 @@ the Free Software Foundation, 675 Mass A
|
|
CCL handler changed. */
|
|
|
|
#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
+#include <string.h>
|
|
#ifdef emacs
|
|
#include <config.h>
|
|
#include "lisp.h"
|
|
@@ -154,7 +156,7 @@ char code_priority_category[IDX_BIN + 1]
|
|
/* 92.4.3, 92.12.18 by K.Handa */
|
|
Lisp_Object Qcoding_system, Qcoding_system_p, Qnon_nil_coding_system_p;
|
|
Lisp_Object Qeol_type;
|
|
-Lisp_Object Qpriority;
|
|
+extern Lisp_Object Qpriority;
|
|
/* end of patch */
|
|
#endif /* emacs */
|
|
|