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.
This commit is contained in:
dholland 2011-12-24 17:07:07 +00:00
parent ad3e4af90b
commit 918e692115
49 changed files with 785 additions and 84 deletions

View file

@ -1,21 +1,21 @@
$NetBSD: distinfo,v 1.11 2011/12/24 13:30:33 dholland Exp $
$NetBSD: distinfo,v 1.12 2011/12/24 17:07:07 dholland Exp $
SHA1 (mule-2.3.tar.gz) = 52737767955caf2fde34b994f367a89c5d8a045f
RMD160 (mule-2.3.tar.gz) = 52b93e746a7a796549a44104ab1898954df044bf
Size (mule-2.3.tar.gz) = 10240256 bytes
SHA1 (patch-aa) = 927ec514204ef97101fb3f4ab77eec1c71af23f1
SHA1 (patch-ab) = ffb7afcac57932cfe477b87daa5579b54aea3672
SHA1 (patch-ab) = 7c2cf683e87320190af0306cf7d04b3638600944
SHA1 (patch-ac) = 170fa4f6c17c805dd32a90e8bfb3e38c48a9fc20
SHA1 (patch-ad) = 7a52802cd614441320221f450cf97d4e30f40f2b
SHA1 (patch-ae) = 1f020aaeb75cd7dd2b827ab34382e472add09719
SHA1 (patch-af) = 2672b9c724cfed135218a76e857fd26ebe3676ac
SHA1 (patch-ag) = 590fe919b44722f7ba1e390cf7fecbc20eeeba06
SHA1 (patch-ah) = b264a5504f24929a413241f935338ef6d7ab9763
SHA1 (patch-ag) = 6f86f0f97b24d85964b250ac22124369a5b0ab74
SHA1 (patch-ah) = 8a8b0da32740626d001371b14ec68087523c7753
SHA1 (patch-ai) = b3504a83bc51b3712e016f5b3efe9155fcaffa4b
SHA1 (patch-aj) = c240cbff3da3ca33663fc2e1d04a3c60c84b4d70
SHA1 (patch-ak) = 9304c40c5beabbfde048cd02b299359660a0271e
SHA1 (patch-ak) = bc484a2177c7fd5431fafe4269ee156ef764cbba
SHA1 (patch-al) = c5e2542651c795a57864811c7019a65f4d991247
SHA1 (patch-am) = 4ce76f12b3f8e2744bfd4cf683c4abc82ad60af0
SHA1 (patch-am) = 336e2dfa617866265948f6d749ee5325b26714ee
SHA1 (patch-an) = 9221c9747c7cf600e9915f8428178d33a55d180b
SHA1 (patch-ao) = d878149708394d86bd8e98b771282e17cf95607b
SHA1 (patch-ap) = 7de7d9c78d71a6c7df5329880f7de8bfb63f0936
@ -32,7 +32,7 @@ SHA1 (patch-az) = 16d78ec1f126c8edec2ce370704f77cd87b47da6
SHA1 (patch-ba) = b65fa5abdb80d31573f2856fd7317c92f5741a0a
SHA1 (patch-bb) = 09c53a3ab6169ee33c4afdbd3e108874627117e2
SHA1 (patch-bc) = 50439819ced9e116e558ac61451442911dff9fd3
SHA1 (patch-bd) = 413995887f8898faac75e93d0bfc6c2fb87a1b43
SHA1 (patch-bd) = a375a90b1dbd7fbaa1cd09ff55bafa83747c8a90
SHA1 (patch-be) = 85658caaf28202b2dc07172c671d18441ce1e494
SHA1 (patch-bf) = 70ef9e03b13d23da7b6e9ad8b9b5ba1c08285ee8
SHA1 (patch-bg) = 4fb1d27e69961bbe5a90efe8e73bf0de6f5c491d
@ -51,19 +51,49 @@ SHA1 (patch-bs) = 1fd5b02129bb356ab422e83812b83c7ff656af8c
SHA1 (patch-bt) = b0f3c38e61ae211f35695d2522f1f7440a944302
SHA1 (patch-bu) = a8ccd87510615e5353bb9525cd0fcfafdf56ea07
SHA1 (patch-bv) = b92611d27a1fc4fc0d4bbe171683e057e6dcaf60
SHA1 (patch-bw) = b31cb18bb72ad22e569ac927517946c6d1b81295
SHA1 (patch-bx) = 65ad4fcff8f71b9e1ad4915f8a9cdeff05da243d
SHA1 (patch-by) = 4bff739ab49291737f3d20fa89bb243b3651db6a
SHA1 (patch-bw) = 460728484379cc4325f7b1836cec9a4b3b25e46a
SHA1 (patch-bx) = c8409b75cbf3fda30e3ffaf69d13a2c1b551505a
SHA1 (patch-by) = 2b1c42e36d5217208fcc83bb0464c09bc38db933
SHA1 (patch-bz) = e48f13d6194976f8f4174257a06c300a959c9ac7
SHA1 (patch-ca) = a98c0d794427e858c6232283f50598d0c55c3f16
SHA1 (patch-cb) = aa0d1252d655c1f9d9f39fab2a145f521e01979f
SHA1 (patch-cb) = 183faec2b32b1914d896c371013d5c059e3ca636
SHA1 (patch-cc) = b85f9888f51d3cdab13a80b20e083e2cfaac85d2
SHA1 (patch-cd) = cc9a52fca9e48e404f890f0ecc7ae16204d2d9cf
SHA1 (patch-ce) = 2190c8be66f0fb2e4479a7c151d51f88858e83be
SHA1 (patch-cf) = a13990995698dc16f91a825cbb4430a41a4c65dd
SHA1 (patch-cg) = 2fbe0de8a502a2fe083379a39aaf126148d0ded3
SHA1 (patch-ch) = f5314755074b7301ee36825c82d15763b1d3f062
SHA1 (patch-ci) = b172fe40cccba2aa622a5522fffa421cbcd299a5
SHA1 (patch-cd) = fa7862b6fb879876d5806935ac8b8fb1104333b2
SHA1 (patch-ce) = 404785b9bf25b43112c92e03efb904e817f13152
SHA1 (patch-cf) = 3ae3136fbe2caceed2693efb8eb67886ce4e2ebc
SHA1 (patch-cg) = 5a4180cc9cf4fa62ed1eb357ff8cf0a3209ce491
SHA1 (patch-ch) = 6b79e0f1df6a92fda1f5f7f490c91ce75fa3dd28
SHA1 (patch-ci) = da85f217fe40ed4f0b4a16c21dd6fd3863b8d965
SHA1 (patch-cj) = 19b158106f4fbe382084dc8e6ddd6545e506e30d
SHA1 (patch-src_alloc_c) = 9b64346015538d9fa26136b699f04af2d4a54c9a
SHA1 (patch-src_m_amd64.h) = c99d0e5c2fe4780735581354534a545a5ed44702
SHA1 (patch-lib-src_bdf_c) = d739f51baf40ba9bc34e87bdd7ecab643bef7b0f
SHA1 (patch-lib-src_coco_c) = 886628867fd689df92bbf654260c3043a72ce0cc
SHA1 (patch-lib-src_etags_c) = 2c5c5907e7b652cd295252ddd86df107359b3fab
SHA1 (patch-lib-src_fakelisp_c) = 2245e7c3353489452caddb293f0ae2e99b6d1b0a
SHA1 (patch-lib-src_make-docfile_c) = a5542c5c17ecb1512d1919fd304b611fc21cd835
SHA1 (patch-lib-src_profile_c) = b4e74a5fc7ab5444dd48dcc6dc231d0382fb7621
SHA1 (patch-lib-src_sorted-doc_c) = 9965f6a6722c2735dfc609a7a15c669f3df8fae4
SHA1 (patch-lib-src_yow_c) = 38fb3e70395525ce8bb4816acd1b9e64c20f3735
SHA1 (patch-src_abbrev_c) = f0d1c74b8c4b0fc95b2322e07e15b81102d2b74e
SHA1 (patch-src_alloc_c) = a5db486e10072ec3738df001aa555e35ae5a5a07
SHA1 (patch-src_buffer_h) = 6b7ce37d58aa3c7dbed43733200bc0b196705c3c
SHA1 (patch-src_bytecode_c) = 93508ddb17e3ba2c7bb921caf85ce1e4e15791f3
SHA1 (patch-src_callint_c) = 0b44807e049c12d2625c950efb14fd5409aba058
SHA1 (patch-src_charset_c) = 0ccabcbc2f752ec40c05c3f2dd7da342d2c1173e
SHA1 (patch-src_dired_c) = 411cc423161b74f277f3c44a9e4ba17b2ccbfc43
SHA1 (patch-src_doc_c) = f8beb91ee577aa4dde3712b49718e24ce8786c85
SHA1 (patch-src_doprnt_c) = 5532a42eed6e67f35d3fce018b8350a5791f0f58
SHA1 (patch-src_editfns_c) = 9df4c96763bffecbf4d475f39d60a7c364fc6a80
SHA1 (patch-src_eval_c) = c20f3fe33002aa2e3cb1b0579cc906412b4bcd35
SHA1 (patch-src_keymap_c) = dd0201aca4c50c249d2412998f9fd5249c34d58c
SHA1 (patch-src_m_amd64.h) = eadba5e4bc5f4e8351208f52d5130e6919cb480b
SHA1 (patch-src_macros_c) = c26d867719a2c87aa0e1a9586a6043751d6d0e7d
SHA1 (patch-src_mcpath_c) = 6f2fb95a1b77d2bacd50e3361d31d2b8c45df002
SHA1 (patch-src_ralloc_c) = d97472669d0d89cd87dea6dba431b64eeec939b3
SHA1 (patch-src_scroll_c) = 572727c5e9831145876a311321f5bfe0f4d1494c
SHA1 (patch-src_search_c) = 3bb65a3730cadee6f905589a02e256096b8c462e
SHA1 (patch-src_term_c) = d84743118cf44a82edb20dd5a0f7519b4cd67171
SHA1 (patch-src_textprop_c) = 5eb63b06d2bfc972ca1f017cb079c4b11839aedc
SHA1 (patch-src_tparam_c) = 382ea3588361af358f9259f6348af8c4c0185515
SHA1 (patch-src_xdisp_c) = 32171440531db8ab9fa2af36648f5123149e1f3f
SHA1 (patch-src_xfaces_c) = c07e1068b4eebc9185d8246756179899148a8f97
SHA1 (patch-src_xmenu_c) = ebd9a100bc1403e0df0bd760a93805dc10cc5e3c

View file

@ -1,4 +1,4 @@
$NetBSD: patch-ab,v 1.2 2005/12/01 18:13:24 wiz Exp $
$NetBSD: patch-ab,v 1.3 2011/12/24 17:07:07 dholland Exp $
--- src/unexelf.c.orig 1994-10-21 05:21:00.000000000 +0100
+++ src/unexelf.c
@ -466,7 +466,7 @@ $NetBSD: patch-ab,v 1.2 2005/12/01 18:13:24 wiz Exp $
+/*
+ * NetBSD does not have normal-looking user-land ELF support.
+ */
+# ifdef __alpha__
+# if defined(__alpha__) || defined(__x86_64__) || defined(__sparc64__) || defined(_LP64)
+# define ELFSIZE 64
+# else
+# define ELFSIZE 32

View file

@ -1,8 +1,20 @@
$NetBSD: patch-ag,v 1.2 2005/12/01 18:13:24 wiz Exp $
$NetBSD: patch-ag,v 1.3 2011/12/24 17:07:07 dholland Exp $
--- src/coding.c.orig 1996-09-28 02:41:51.000000000 +0200
- use standard headers
- declare external symbols properly
--- src/coding.c.orig 1996-09-28 00:41:51.000000000 +0000
+++ src/coding.c
@@ -154,7 +154,7 @@ char code_priority_category[IDX_BIN + 1]
@@ -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;

View file

@ -1,10 +1,15 @@
$NetBSD: patch-ah,v 1.3 2006/01/04 20:35:08 joerg Exp $
$NetBSD: patch-ah,v 1.4 2011/12/24 17:07:07 dholland Exp $
- use standard headers
- don't declare own errno
- don't rely on "unix" being defined, as it isn't
--- src/fileio.c.orig 1995-06-23 10:25:18.000000000 +0000
+++ src/fileio.c
@@ -117,10 +117,6 @@ the Free Software Foundation, 675 Mass A
@@ -117,10 +117,7 @@ the Free Software Foundation, 675 Mass A
#include <errno.h>
+#include <stdlib.h>
-#ifndef vax11c
-extern int errno;
@ -13,7 +18,7 @@ $NetBSD: patch-ah,v 1.3 2006/01/04 20:35:08 joerg Exp $
extern char *strerror ();
#ifdef APOLLO
@@ -2604,8 +2600,6 @@ The value is an integer.")
@@ -2604,8 +2601,6 @@ The value is an integer.")
return value;
}
@ -22,7 +27,7 @@ $NetBSD: patch-ah,v 1.3 2006/01/04 20:35:08 joerg Exp $
DEFUN ("unix-sync", Funix_sync, Sunix_sync, 0, 0, "",
"Tell Unix to finish all pending disk updates.")
()
@@ -2614,8 +2608,6 @@ DEFUN ("unix-sync", Funix_sync, Sunix_sy
@@ -2614,8 +2609,6 @@ DEFUN ("unix-sync", Funix_sync, Sunix_sy
return Qnil;
}
@ -31,7 +36,7 @@ $NetBSD: patch-ah,v 1.3 2006/01/04 20:35:08 joerg Exp $
DEFUN ("file-newer-than-file-p", Ffile_newer_than_file_p, Sfile_newer_than_file_p, 2, 2, 0,
"Return t if file FILE1 is newer than file FILE2.\n\
If FILE1 does not exist, the answer is nil;\n\
@@ -4507,7 +4499,5 @@ This applies only to the operation `inhi
@@ -4507,7 +4500,5 @@ This applies only to the operation `inhi
defsubr (&Sread_file_name_internal);
defsubr (&Sread_file_name);

View file

@ -1,8 +1,20 @@
$NetBSD: patch-ak,v 1.3 2006/01/04 20:35:08 joerg Exp $
$NetBSD: patch-ak,v 1.4 2011/12/24 17:07:07 dholland Exp $
--- src/keyboard.c.orig 1995-02-03 02:21:28.000000000 +0100
- 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
@@ -100,8 +100,6 @@ the Free Software Foundation, 675 Mass A
@@ -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"
@ -11,7 +23,7 @@ $NetBSD: patch-ak,v 1.3 2006/01/04 20:35:08 joerg Exp $
/* Variables for blockinput.h: */
/* Non-zero if interrupt input is blocked right now. */
@@ -301,7 +299,7 @@ Lisp_Object Vlast_event_frame;
@@ -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. */

View file

@ -1,8 +1,19 @@
$NetBSD: patch-am,v 1.2 2005/12/01 18:13:24 wiz Exp $
$NetBSD: patch-am,v 1.3 2011/12/24 17:07:07 dholland Exp $
--- src/xfns.c.orig 1994-11-04 12:11:24.000000000 +0100
- use standard headers
- declare external symbols properly
--- src/xfns.c.orig 1994-11-04 11:11:24.000000000 +0000
+++ src/xfns.c
@@ -226,7 +226,7 @@ Lisp_Object Qborder_width;
@@ -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;

View file

@ -1,12 +1,25 @@
$NetBSD: patch-bd,v 1.2 2005/12/01 18:13:24 wiz Exp $
$NetBSD: patch-bd,v 1.3 2011/12/24 17:07:07 dholland Exp $
--- src/fns.c.orig 1994-10-21 05:20:15.000000000 +0100
- use standard headers
--- src/fns.c.orig 1994-10-21 04:20:15.000000000 +0000
+++ src/fns.c
@@ -64,7 +64,9 @@ With argument t, set the random number s
@@ -24,6 +24,8 @@ the Free Software Foundation, 675 Mass A
/* 93.1.15 modified for Mule Ver.0.9.7.1 by Y.Akiba <akiba@cbs.canon.co.jp>
Patch for NeXT is updated. */
+#include <stdlib.h>
+#include <time.h>
#include <config.h>
/* Note on some machines this defines `vector' as a typedef,
@@ -64,7 +66,9 @@ With argument t, set the random number s
{
int val;
unsigned long denominator;
+#if 0
extern long random ();
extern srandom ();
+#ifndef __NetBSD__
extern long time ();
+#endif

View file

@ -1,8 +1,31 @@
$NetBSD: patch-bw,v 1.1 2006/01/04 20:35:08 joerg Exp $
$NetBSD: patch-bw,v 1.2 2011/12/24 17:07:07 dholland Exp $
--- lib-src/movemail.c.orig 2006-01-04 17:43:12.000000000 +0000
- use standard headers
- don't declare own errno
- fix malloc usage
--- lib-src/movemail.c.orig 1994-08-04 23:15:22.000000000 +0000
+++ lib-src/movemail.c
@@ -370,7 +370,6 @@ error (s1, s2, s3)
@@ -54,6 +54,9 @@ the Free Software Foundation, 675 Mass A
#include <sys/stat.h>
#include <sys/file.h>
#include <errno.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <../src/syswait.h>
#ifdef MSDOS
@@ -98,7 +101,7 @@ extern int lk_open (), lk_close ();
#undef close
char *concat ();
-char *xmalloc ();
+void *xmalloc (size_t);
#ifndef errno
extern int errno;
#endif
@@ -370,7 +373,6 @@ error (s1, s2, s3)
pfatal_with_name (name)
char *name;
{
@ -10,7 +33,7 @@ $NetBSD: patch-bw,v 1.1 2006/01/04 20:35:08 joerg Exp $
extern char *strerror ();
char *s;
@@ -381,7 +380,6 @@ pfatal_with_name (name)
@@ -381,7 +383,6 @@ pfatal_with_name (name)
pfatal_and_delete (name)
char *name;
{
@ -18,7 +41,22 @@ $NetBSD: patch-bw,v 1.1 2006/01/04 20:35:08 joerg Exp $
extern char *strerror ();
char *s;
@@ -747,7 +745,6 @@ multiline (buf, n, f)
@@ -409,11 +410,10 @@ concat (s1, s2, s3)
/* Like malloc but get fatal error if memory is exhausted. */
-char *
-xmalloc (size)
- unsigned size;
+void *
+xmalloc (size_t size)
{
- char *result = (char *) malloc (size);
+ void *result = (char *) malloc (size);
if (!result)
fatal ("virtual memory exhausted", 0);
return result;
@@ -747,7 +747,6 @@ multiline (buf, n, f)
char *
get_errmsg ()
{

View file

@ -1,10 +1,12 @@
$NetBSD: patch-bx,v 1.1 2006/01/04 20:35:08 joerg Exp $
$NetBSD: patch-bx,v 1.2 2011/12/24 17:07:07 dholland Exp $
--- lib-src/emacsserver.c.orig 2006-01-04 17:43:55.000000000 +0000
+++ lib-src/emacsserver.c
@@ -56,8 +56,6 @@ main ()
@@ -56,8 +56,8 @@ main ()
#include <stdio.h>
#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
-extern int errno;
-

View file

@ -1,12 +1,30 @@
$NetBSD: patch-by,v 1.1 2006/01/04 20:35:08 joerg Exp $
$NetBSD: patch-by,v 1.2 2011/12/24 17:07:07 dholland Exp $
--- lib-src/timer.c.orig 2006-01-04 17:44:22.000000000 +0000
- use standard headers
- don't declare own errno
--- lib-src/timer.c.orig 1995-02-17 07:47:36.000000000 +0000
+++ lib-src/timer.c
@@ -33,7 +33,6 @@
@@ -12,7 +12,9 @@
esr@snark.thyrsus.com, Aug 7 1992. */
#include <stdio.h>
+#include <stdlib.h>
#include <signal.h>
+#include <time.h>
#include <errno.h>
#include <sys/types.h> /* time_t */
@@ -33,12 +35,7 @@
#endif
-extern int errno;
extern char *strerror ();
#ifndef OSF1
extern char *malloc ();
-#ifndef OSF1
-extern char *malloc ();
-#endif
-extern time_t time ();
/*
* The field separator for input. This character shouldn't occur in dates,

View file

@ -1,8 +1,19 @@
$NetBSD: patch-cb,v 1.1 2006/01/04 20:35:08 joerg Exp $
$NetBSD: patch-cb,v 1.2 2011/12/24 17:07:07 dholland Exp $
--- src/dispnew.c.orig 2006-01-04 18:00:54.000000000 +0000
- use standard headers
- don't declare own errno
--- src/dispnew.c.orig 1995-02-03 01:21:28.000000000 +0000
+++ src/dispnew.c
@@ -2047,7 +2047,6 @@ SIGTYPE
@@ -59,6 +59,7 @@ the Free Software Foundation, 675 Mass A
#include <stdio.h>
#include <ctype.h>
+#include <stdlib.h>
#include "lisp.h"
#include "termchar.h"
@@ -2047,7 +2048,6 @@ SIGTYPE
window_change_signal ()
{
int width, height;

View file

@ -1,8 +1,19 @@
$NetBSD: patch-cd,v 1.1 2006/01/04 20:35:08 joerg Exp $
$NetBSD: patch-cd,v 1.2 2011/12/24 17:07:07 dholland Exp $
--- src/xterm.c.orig 2006-01-04 18:04:35.000000000 +0000
- use standard headers
- don't declare own errno
--- src/xterm.c.orig 1995-07-22 00:59:57.000000000 +0000
+++ src/xterm.c
@@ -358,8 +358,6 @@ static int x_noop_count;
@@ -71,6 +71,7 @@ the Free Software Foundation, 675 Mass A
#include <setjmp.h>
#include <sys/stat.h>
#include <sys/param.h>
+#include <stdlib.h>
#include "dispextern.h"
#include "termhooks.h"
@@ -358,8 +359,6 @@ static int x_noop_count;
static WINDOWINFO_TYPE windowinfo;

View file

@ -1,8 +1,21 @@
$NetBSD: patch-ce,v 1.1 2006/01/04 20:35:08 joerg Exp $
$NetBSD: patch-ce,v 1.2 2011/12/24 17:07:07 dholland Exp $
--- src/sysdep.c.orig 2006-01-04 18:25:48.000000000 +0000
- use standard headers
- don't declare own errno
--- src/sysdep.c.orig 1995-06-10 03:07:04.000000000 +0000
+++ src/sysdep.c
@@ -75,8 +75,6 @@ extern int h_errno;
@@ -20,6 +20,9 @@ the Free Software Foundation, 675 Mass A
#include <signal.h>
#include <setjmp.h>
+#include <string.h>
+#include <stdlib.h>
+#include <unistd.h>
#include <config.h>
#include "lisp.h"
@@ -75,8 +78,6 @@ extern int h_errno;
#include <sys/param.h>
#endif

View file

@ -1,8 +1,19 @@
$NetBSD: patch-cf,v 1.1 2006/01/04 20:35:08 joerg Exp $
$NetBSD: patch-cf,v 1.2 2011/12/24 17:07:07 dholland Exp $
--- src/filelock.c.orig 2006-01-04 18:27:02.000000000 +0000
- use standard headers
- don't declare own errno
--- src/filelock.c.orig 1994-11-11 00:35:51.000000000 +0000
+++ src/filelock.c
@@ -56,8 +56,6 @@ extern DIR *opendir ();
@@ -19,6 +19,7 @@ the Free Software Foundation, 675 Mass A
#include <sys/types.h>
#include <sys/stat.h>
+#include <stdlib.h>
#include <config.h>
#ifdef VMS
@@ -56,8 +57,6 @@ extern DIR *opendir ();
#endif /* not SYSV_SYSTEM_DIR */
#endif /* not MCPATH */

View file

@ -1,8 +1,19 @@
$NetBSD: patch-cg,v 1.1 2006/01/04 20:35:08 joerg Exp $
$NetBSD: patch-cg,v 1.2 2011/12/24 17:07:07 dholland Exp $
- use standard headers
- don't declare own errno
--- src/process.c.orig 1996-08-15 03:39:14.000000000 +0000
+++ src/process.c
@@ -191,7 +191,6 @@ static Lisp_Object stream_process;
@@ -95,6 +95,7 @@ the Free Software Foundation, 675 Mass A
#include <stdio.h>
#include <errno.h>
#include <setjmp.h>
+#include <stdlib.h>
#include <sys/types.h> /* some typedefs are used in sys/file.h */
#include <sys/file.h>
#include <sys/stat.h>
@@ -191,7 +192,6 @@ static Lisp_Object stream_process;
#include "syswait.h"

View file

@ -1,12 +1,17 @@
$NetBSD: patch-ch,v 1.1 2006/01/04 20:35:08 joerg Exp $
$NetBSD: patch-ch,v 1.2 2011/12/24 17:07:07 dholland Exp $
- use standard headers
- don't declare own errno
--- src/callproc.c.orig 2006-01-04 18:33:30.000000000 +0000
+++ src/callproc.c
@@ -57,7 +57,6 @@ the Free Software Foundation, 675 Mass A
@@ -57,7 +57,7 @@ the Free Software Foundation, 675 Mass A
#include <config.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
-extern int errno;
extern char *strerror ();
-extern char *strerror ();
/* Define SIGCHLD as an alias for SIGCLD. */

View file

@ -1,8 +1,20 @@
$NetBSD: patch-ci,v 1.1 2006/01/04 20:35:08 joerg Exp $
$NetBSD: patch-ci,v 1.2 2011/12/24 17:07:07 dholland Exp $
--- src/xrdb.c.orig 2006-01-04 18:51:03.000000000 +0000
- use standard headers
- don't declare own errno
--- src/xrdb.c.orig 1995-02-17 07:55:38.000000000 +0000
+++ src/xrdb.c
@@ -665,8 +665,6 @@ fatal (msg, prog, x1, x2, x3, x4, x5)
@@ -22,6 +22,8 @@ the Free Software Foundation, 675 Mass A
#endif
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#if 1 /* I'd really appreciate it if this code could go away... -JimB */
/* this avoids lossage in the `dual-universe' headers on AT&T SysV X11 */
@@ -665,8 +667,6 @@ fatal (msg, prog, x1, x2, x3, x4, x5)
char *msg, *prog;
int x1, x2, x3, x4, x5;
{

View file

@ -0,0 +1,14 @@
$NetBSD: patch-lib-src_bdf_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- lib-src/bdf.c~ 1995-06-15 08:12:59.000000000 +0000
+++ lib-src/bdf.c
@@ -50,6 +50,7 @@ the Free Software Foundation, 675 Mass A
In bdf_load_font(), fontp->extra->fs should not be set in emacs. */
#include <stdio.h>
+#include <stdlib.h>
#include <sys/param.h>
#include <sys/types.h>
#include <fcntl.h>

View file

@ -0,0 +1,12 @@
$NetBSD: patch-lib-src_coco_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- lib-src/coco.c~ 1996-04-04 03:43:46.000000000 +0000
+++ lib-src/coco.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h>
#include "mulelib.h"
#define IN_BUF_SIZE 4096

View file

@ -0,0 +1,15 @@
$NetBSD: patch-lib-src_etags_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- lib-src/etags.c~ 1994-07-08 10:24:10.000000000 +0000
+++ lib-src/etags.c
@@ -44,6 +44,8 @@ char pot_etags_version[] = "@(#) pot rev
#endif
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>

View file

@ -0,0 +1,11 @@
$NetBSD: patch-lib-src_fakelisp_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- lib-src/fakelisp.c~ 1995-01-06 12:09:02.000000000 +0000
+++ lib-src/fakelisp.c
@@ -1,3 +1,4 @@
+#include <stdlib.h>
#include "fakelisp.h"
void *Lisp_Object_Table[4096];

View file

@ -0,0 +1,15 @@
$NetBSD: patch-lib-src_make-docfile_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- lib-src/make-docfile.c~ 1994-05-19 21:04:35.000000000 +0000
+++ lib-src/make-docfile.c
@@ -32,6 +32,8 @@ the Free Software Foundation, 675 Mass A
*/
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#ifdef MSDOS
#include <fcntl.h>
#endif /* MSDOS */

View file

@ -0,0 +1,15 @@
$NetBSD: patch-lib-src_profile_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- fix void main
--- lib-src/profile.c~ 1994-07-25 23:20:58.000000000 +0000
+++ lib-src/profile.c
@@ -66,7 +66,7 @@ get_time ()
return time_string;
}
-void
+int
main ()
{
int c;

View file

@ -0,0 +1,33 @@
$NetBSD: patch-lib-src_sorted-doc_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
- fix malloc usage
--- lib-src/sorted-doc.c~ 1992-10-07 18:21:09.000000000 +0000
+++ lib-src/sorted-doc.c
@@ -6,11 +6,10 @@
*/
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <ctype.h>
-extern char *malloc ();
-char *xmalloc ();
-
#define NUL '\0'
#define MARKER '\037'
@@ -56,9 +55,8 @@ error (s1, s2)
/* Like malloc but get fatal error if memory is exhausted. */
-char *
-xmalloc (size)
- int size;
+void *
+xmalloc (size_t size)
{
char *result = malloc ((unsigned)size);
if (result == NULL)

View file

@ -0,0 +1,23 @@
$NetBSD: patch-lib-src_yow_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use time() correctly
--- lib-src/yow.c~ 1994-06-07 15:18:54.000000000 +0000
+++ lib-src/yow.c
@@ -9,6 +9,7 @@
#include <stdio.h>
#include <ctype.h>
+#include <time.h>
#include <../src/paths.h> /* For PATH_DATA. */
#define BUFSIZE 80
@@ -53,7 +54,7 @@ main (argc, argv)
}
/* initialize random seed */
- srand((int) (getpid() + time((long *) 0)));
+ srand((int) (getpid() + time(NULL)));
setup_yow(fp);
yow(fp);

View file

@ -0,0 +1,14 @@
$NetBSD: patch-src_abbrev_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- src/abbrev.c~ 1993-09-13 11:20:03.000000000 +0000
+++ src/abbrev.c
@@ -20,6 +20,7 @@ the Free Software Foundation, 675 Mass A
#include <config.h>
#include <stdio.h>
+#include <stdlib.h>
#include "lisp.h"
#include "commands.h"
#include "buffer.h"

View file

@ -1,12 +1,21 @@
$NetBSD: patch-src_alloc_c,v 1.1 2011/12/24 13:30:33 dholland Exp $
$NetBSD: patch-src_alloc_c,v 1.2 2011/12/24 17:07:07 dholland Exp $
- use standard includes
- add an empty asm() destroying memory that prevents gcc from
optimizing out __malloc_hook and friends (which leads to
SIGSEGV in temacs during build)
--- src/alloc.c~ 1994-10-24 11:37:41.000000000 +0000
--- src/alloc.c.orig 1994-10-24 11:37:41.000000000 +0000
+++ src/alloc.c
@@ -240,6 +240,9 @@ emacs_blocked_free (ptr)
@@ -30,6 +30,7 @@ the Free Software Foundation, 675 Mass A
In make_string(), original bug fixed. */
#include <signal.h>
+#include <stdlib.h>
#include <config.h>
#include "lisp.h"
@@ -240,6 +241,9 @@ emacs_blocked_free (ptr)
{
BLOCK_INPUT;
__free_hook = old_free_hook;
@ -16,7 +25,7 @@ $NetBSD: patch-src_alloc_c,v 1.1 2011/12/24 13:30:33 dholland Exp $
free (ptr);
__free_hook = emacs_blocked_free;
UNBLOCK_INPUT;
@@ -253,6 +256,9 @@ emacs_blocked_malloc (size)
@@ -253,6 +257,9 @@ emacs_blocked_malloc (size)
BLOCK_INPUT;
__malloc_hook = old_malloc_hook;
@ -26,7 +35,7 @@ $NetBSD: patch-src_alloc_c,v 1.1 2011/12/24 13:30:33 dholland Exp $
value = (void *) malloc (size);
__malloc_hook = emacs_blocked_malloc;
UNBLOCK_INPUT;
@@ -269,6 +275,9 @@ emacs_blocked_realloc (ptr, size)
@@ -269,6 +276,9 @@ emacs_blocked_realloc (ptr, size)
BLOCK_INPUT;
__realloc_hook = old_realloc_hook;

View file

@ -0,0 +1,15 @@
$NetBSD: patch-src_buffer_h,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- src/buffer.h~ 1995-06-09 08:31:18.000000000 +0000
+++ src/buffer.h
@@ -40,6 +40,8 @@ the Free Software Foundation, 675 Mass A
/* 93.7.7 modified for Mule Ver.0.9.8 by K.Handa <handa@etl.go.jp>
frontmap is introduced. */
+#include <stdlib.h>
+
#ifdef USE_TEXT_PROPERTIES
#define SET_PT(position) (set_point ((position), current_buffer))
#define TEMP_SET_PT(position) (temp_set_point ((position), current_buffer))

View file

@ -0,0 +1,14 @@
$NetBSD: patch-src_bytecode_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- src/bytecode.c~ 1994-10-21 04:19:49.000000000 +0000
+++ src/bytecode.c
@@ -34,6 +34,7 @@ by Hallvard:
/* 92.3.6 modified for Mule Ver.0.9.0 by K.Handa <handa@etl.go.jp> */
+#include <stdlib.h>
#include <config.h>
#include "lisp.h"
#include "buffer.h"

View file

@ -0,0 +1,14 @@
$NetBSD: patch-src_callint_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- src/callint.c~ 1994-10-21 04:19:49.000000000 +0000
+++ src/callint.c
@@ -24,6 +24,7 @@ the Free Software Foundation, 675 Mass A
/* 93.3.18 modified for Mule Ver.0.9.7.1 by K.Handa <handa@etl.go.jp>
Document of 'interactive' updated. */
+#include <stdlib.h>
#include <config.h>
#include "lisp.h"
#include "buffer.h"

View file

@ -0,0 +1,14 @@
$NetBSD: patch-src_charset_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- src/charset.c~ 1995-07-18 11:35:56.000000000 +0000
+++ src/charset.c
@@ -73,6 +73,7 @@ the Free Software Foundation, 675 Mass A
#include <sys/types.h>
#include <config.h>
#else /* not emacs */
+#include <stdlib.h>
#define xmalloc (void *)malloc
#define xrealloc (void *)realloc
#endif /* emacs */

View file

@ -0,0 +1,14 @@
$NetBSD: patch-src_dired_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- src/dired.c~ 1994-11-11 00:35:50.000000000 +0000
+++ src/dired.c
@@ -21,6 +21,7 @@ the Free Software Foundation, 675 Mass A
#include <config.h>
#include <stdio.h>
+#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>

View file

@ -0,0 +1,14 @@
$NetBSD: patch-src_doc_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- src/doc.c~ 1994-10-21 04:20:03.000000000 +0000
+++ src/doc.c
@@ -22,6 +22,7 @@ the Free Software Foundation, 675 Mass A
#include <sys/types.h>
#include <sys/file.h> /* Must be after sys/types.h for USG and BSD4_1*/
+#include <stdlib.h>
#ifdef USG5
#include <fcntl.h>

View file

@ -0,0 +1,14 @@
$NetBSD: patch-src_doprnt_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- src/doprnt.c~ 1994-10-24 12:24:27.000000000 +0000
+++ src/doprnt.c
@@ -29,6 +29,7 @@ the Free Software Foundation, 675 Mass A
#include <config.h>
#include <stdio.h>
#include <ctype.h>
+#include <stdlib.h>
#include "lisp.h"
#include "charset.h"

View file

@ -0,0 +1,14 @@
$NetBSD: patch-src_editfns_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- src/editfns.c~ 1994-10-24 04:23:21.000000000 +0000
+++ src/editfns.c
@@ -46,6 +46,7 @@ the Free Software Foundation, 675 Mass A
char_to_string() and string_to_char() completely re-written. */
#include <sys/types.h>
+#include <stdlib.h>
#include <config.h>

View file

@ -0,0 +1,14 @@
$NetBSD: patch-src_eval_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- src/eval.c~ 1994-10-21 04:20:08.000000000 +0000
+++ src/eval.c
@@ -24,6 +24,7 @@ the Free Software Foundation, 675 Mass A
/* 93.7.8 modified for Mule Ver.0.9.8 by T.Atsushiba <toshiki@jit.dec.co.jp>
Function type declaration of call4(). */
+#include <stdlib.h>
#include <config.h>
#include "lisp.h"
#include "blockinput.h"

View file

@ -0,0 +1,14 @@
$NetBSD: patch-src_keymap_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- src/keymap.c~ 1994-10-24 12:30:52.000000000 +0000
+++ src/keymap.c
@@ -31,6 +31,7 @@ the Free Software Foundation, 675 Mass A
#include <config.h>
#include <stdio.h>
+#include <stdlib.h>
#undef NULL
#include "lisp.h"
#include "commands.h"

View file

@ -1,8 +1,10 @@
$NetBSD: patch-src_m_amd64.h,v 1.1 2011/12/20 18:33:40 ryoon Exp $
$NetBSD: patch-src_m_amd64.h,v 1.2 2011/12/24 17:07:07 dholland Exp $
--- src/m/amd64.h.orig 2011-12-20 18:27:24.000000000 +0000
amd64 support.
--- src/m/amd64.h.orig 2011-12-24 14:41:29.000000000 +0000
+++ src/m/amd64.h
@@ -0,0 +1,141 @@
@@ -0,0 +1,156 @@
+/* machine description file for AMD x86-64.
+ Copyright (C) 2002 Free Software Foundation, Inc.
+
@ -30,9 +32,17 @@ $NetBSD: patch-src_m_amd64.h,v 1.1 2011/12/20 18:33:40 ryoon Exp $
+
+#define SHORTBITS 16 /* Number of bits in a short */
+
+#define INTBITS 32 /* Number of bits in an int */
+#define INTBITS 32L /* Number of bits in an int */
+
+#define LONGBITS 64 /* Number of bits in a long */
+#define LONGBITS 64L /* Number of bits in a long */
+
+/* Define LONG_LISP_OBJECT if you define LISP_OBJECT as long. */
+
+#define LONG_LISP_OBJECT
+
+/* Define the number of bits compose Lisp_Object. The default is 32. */
+
+#define LISP_OBJECT_BITS 64
+
+/* The following line tells the configuration script what sort of
+ operating system this machine is likely to run.
@ -41,10 +51,10 @@ $NetBSD: patch-src_m_amd64.h,v 1.1 2011/12/20 18:33:40 ryoon Exp $
+#define BITS_PER_LONG 64
+#define BITS_PER_EMACS_INT 64
+
+/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
+/* Define BIG_ENDIAN iff lowest-numbered byte in a word
+ is the most significant byte. */
+
+#undef WORDS_BIG_ENDIAN
+#undef BIG_ENDIAN
+
+/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
+ * group of arguments and treat it as an array of the arguments. */
@ -56,6 +66,11 @@ $NetBSD: patch-src_m_amd64.h,v 1.1 2011/12/20 18:33:40 ryoon Exp $
+
+/* #define WORD_MACHINE */
+
+/* Define how to take a char and sign-extend into an int.
+ On machines where char is signed, this is a no-op. */
+
+#define SIGN_EXTEND_CHAR(c) ((signed char)(c))
+
+/* Now define a symbol for the cpu type, if your compiler
+ does not define it automatically:
+ Ones defined so far include vax, m68000, ns16000, pyramid,
@ -122,6 +137,7 @@ $NetBSD: patch-src_m_amd64.h,v 1.1 2011/12/20 18:33:40 ryoon Exp $
+
+#define PNTR_COMPARISON_TYPE unsigned long
+
+#if 0
+/* On the 64 bit architecture, we can use 60 bits for addresses */
+
+#define VALBITS 60
@ -134,6 +150,7 @@ $NetBSD: patch-src_m_amd64.h,v 1.1 2011/12/20 18:33:40 ryoon Exp $
+/* Define XINT and XUINT so that they can take arguments of type int */
+#define XINT(a) (((long) (a) << (BITS_PER_LONG - VALBITS)) >> (BITS_PER_LONG - VALBITS))
+#define XUINT(a) ((long) (a) & VALMASK)
+#endif
+
+/* Define XPNTR to avoid or'ing with DATA_SEG_BITS */
+

View file

@ -0,0 +1,14 @@
$NetBSD: patch-src_macros_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- src/macros.c~ 1993-09-12 01:21:02.000000000 +0000
+++ src/macros.c
@@ -18,6 +18,7 @@ along with GNU Emacs; see the file COPYI
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+#include <stdlib.h>
#include <config.h>
#include "lisp.h"
#include "macros.h"

View file

@ -0,0 +1,14 @@
$NetBSD: patch-src_mcpath_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- src/mcpath.c~ 1995-08-01 10:41:51.000000000 +0000
+++ src/mcpath.c
@@ -25,6 +25,7 @@ the Free Software Foundation, 675 Mass A
#define MCPATH_SOURCE
#include <stdio.h>
+#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/param.h>

View file

@ -0,0 +1,24 @@
$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)

View file

@ -0,0 +1,14 @@
$NetBSD: patch-src_scroll_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- src/scroll.c~ 1994-05-04 02:30:01.000000000 +0000
+++ src/scroll.c
@@ -18,6 +18,7 @@ along with GNU Emacs; see the file COPYI
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+#include <stdlib.h>
#include <config.h>
#include "termchar.h"
#include "lisp.h"

View file

@ -0,0 +1,15 @@
$NetBSD: patch-src_search_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- src/regex19.c.~3~ 1996-07-16 01:44:24.000000000 +0000
+++ src/regex19.c
@@ -25,6 +25,8 @@
#pragma alloca
#endif
+#include <stdlib.h>
+
#define _GNU_SOURCE
#ifdef HAVE_CONFIG_H

View file

@ -0,0 +1,15 @@
$NetBSD: patch-src_term_c,v 1.1 2011/12/24 17:07:07 dholland Exp $
- use standard headers
--- src/term.c~ 1995-01-06 05:57:00.000000000 +0000
+++ src/term.c
@@ -52,7 +52,8 @@ the Free Software Foundation, 675 Mass A
Macro definition of ITNCODE and AUTOCONV switched. */
#include <config.h>
#include <stdio.h>
+#include <stdlib.h>
#include <ctype.h>
#include "termchar.h"
#include "termopts.h"

View file

@ -0,0 +1,14 @@
$NetBSD: patch-src_textprop_c,v 1.1 2011/12/24 17:07:08 dholland Exp $
- use standard headers
--- src/textprop.c~ 1994-11-04 11:11:20.000000000 +0000
+++ src/textprop.c
@@ -17,6 +17,7 @@ You should have received a copy of the G
along with GNU Emacs; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+#include <stdlib.h>
#include <config.h>
#include "lisp.h"
#include "intervals.h"

View file

@ -0,0 +1,15 @@
$NetBSD: patch-src_tparam_c,v 1.1 2011/12/24 17:07:08 dholland Exp $
- lp64 fixes
--- src/tparam.c~ 1995-02-17 07:58:11.000000000 +0000
+++ src/tparam.c
@@ -69,7 +69,7 @@ xrealloc (ptr, size)
return tem;
}
#else
-#ifdef OSF1
+#if defined(OSF1) || defined(_LP64)
extern long *xmalloc();
extern long *xrealloc();
#endif

View file

@ -0,0 +1,14 @@
$NetBSD: patch-src_xdisp_c,v 1.1 2011/12/24 17:07:08 dholland Exp $
- use standard headers
--- src/xdisp.c~ 1996-03-06 08:08:03.000000000 +0000
+++ src/xdisp.c
@@ -68,6 +68,7 @@ the Free Software Foundation, 675 Mass A
#include <config.h>
#include <stdio.h>
+#include <stdlib.h>
/*#include <ctype.h>*/
#undef NULL
#include "lisp.h"

View file

@ -0,0 +1,14 @@
$NetBSD: patch-src_xfaces_c,v 1.1 2011/12/24 17:07:08 dholland Exp $
- use standard headers
--- src/xfaces.c~ 1995-07-18 08:14:26.000000000 +0000
+++ src/xfaces.c
@@ -21,6 +21,7 @@ the Free Software Foundation, 675 Mass A
#include <sys/types.h>
#include <sys/stat.h>
+#include <stdlib.h>
#include <config.h>
#include "lisp.h"

View file

@ -0,0 +1,14 @@
$NetBSD: patch-src_xmenu_c,v 1.1 2011/12/24 17:07:08 dholland Exp $
- use standard headers
--- src/xmenu.c~ 1995-02-17 07:47:37.000000000 +0000
+++ src/xmenu.c
@@ -34,6 +34,7 @@ the Free Software Foundation, 675 Mass A
#include <config.h>
#include <stdio.h>
+#include <stdlib.h>
#include "lisp.h"
#include "termhooks.h"
#include "frame.h"