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.
24 lines
594 B
Text
24 lines
594 B
Text
$NetBSD: patch-am,v 1.3 2011/12/24 17:07:07 dholland Exp $
|
|
|
|
- use standard headers
|
|
- declare external symbols properly
|
|
|
|
--- src/xfns.c.orig 1994-11-04 11:11:24.000000000 +0000
|
|
+++ src/xfns.c
|
|
@@ -23,6 +23,7 @@ the Free Software Foundation, 675 Mass A
|
|
|
|
#include <signal.h>
|
|
#include <config.h>
|
|
+#include <stdlib.h>
|
|
|
|
#if 0
|
|
#include <stdio.h>
|
|
@@ -226,7 +227,7 @@ Lisp_Object Qborder_width;
|
|
Lisp_Object Qbox;
|
|
Lisp_Object Qcursor_color;
|
|
Lisp_Object Qcursor_type;
|
|
-Lisp_Object Qfont;
|
|
+extern Lisp_Object Qfont;
|
|
Lisp_Object Qforeground_color;
|
|
Lisp_Object Qgeometry;
|
|
/* Lisp_Object Qicon; */
|