pkgsrc/editors/mule/patches/patch-ak
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

34 lines
1,010 B
Text

$NetBSD: patch-ak,v 1.4 2011/12/24 17:07:07 dholland Exp $
- use standard headers
- don't declare own errno
- declare external symbols properly
--- src/keyboard.c.orig 1995-02-03 01:21:28.000000000 +0000
+++ src/keyboard.c
@@ -53,6 +53,7 @@ the Free Software Foundation, 675 Mass A
#include <config.h>
#include <stdio.h>
+#include <stdlib.h>
#undef NULL
#include "termchar.h"
#include "termopts.h"
@@ -100,8 +101,6 @@ the Free Software Foundation, 675 Mass A
/* Include systime.h after xterm.h to avoid double inclusion of time.h. */
#include "systime.h"
-extern int errno;
-
/* Variables for blockinput.h: */
/* Non-zero if interrupt input is blocked right now. */
@@ -301,7 +300,7 @@ Lisp_Object Vlast_event_frame;
/* The timestamp of the last input event we received from the X server.
X Windows wants this for selection ownership. */
-unsigned long last_event_timestamp;
+extern unsigned long last_event_timestamp;
Lisp_Object Qself_insert_command;
Lisp_Object Qforward_char;