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.
30 lines
626 B
Text
30 lines
626 B
Text
$NetBSD: patch-by,v 1.2 2011/12/24 17:07:07 dholland Exp $
|
|
|
|
- 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
|
|
@@ -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 ();
|
|
-#endif
|
|
-extern time_t time ();
|
|
|
|
/*
|
|
* The field separator for input. This character shouldn't occur in dates,
|