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

25 lines
642 B
Text

$NetBSD: patch-ci,v 1.2 2011/12/24 17:07:07 dholland Exp $
- use standard headers
- don't declare own errno
--- src/xrdb.c.orig 1995-02-17 07:55:38.000000000 +0000
+++ src/xrdb.c
@@ -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;
{
- extern int errno;
-
if (errno)
perror (prog);