06e54c043c
where errno.h was not included at all.
46 lines
906 B
Text
46 lines
906 B
Text
$NetBSD: patch-ac,v 1.3 2005/11/10 17:23:18 joerg Exp $
|
|
|
|
--- interp.c.orig 1992-05-11 18:43:36.000000000 +0000
|
|
+++ interp.c
|
|
@@ -21,13 +21,13 @@
|
|
#include <ieeefp.h>
|
|
#endif /* IEEE_MATH */
|
|
|
|
+#include <errno.h>
|
|
#include <math.h>
|
|
#include <signal.h>
|
|
#include <setjmp.h>
|
|
#include <stdio.h>
|
|
#include <ctype.h>
|
|
|
|
-extern int errno; /* set by math functions */
|
|
#ifdef BSD42
|
|
#include <strings.h>
|
|
#include <sys/time.h>
|
|
@@ -476,7 +476,7 @@ double
|
|
dodts(mo, day, yr)
|
|
int mo, day, yr;
|
|
{
|
|
- long trial;
|
|
+ time_t trial;
|
|
register struct tm *tp;
|
|
register int i;
|
|
register long jdate;
|
|
@@ -551,15 +551,13 @@ dotime(which, when)
|
|
int which;
|
|
double when;
|
|
{
|
|
- long time();
|
|
-
|
|
static long t_cache;
|
|
static struct tm tm_cache;
|
|
struct tm *tp;
|
|
- long tloc;
|
|
+ time_t tloc;
|
|
|
|
if (which == NOW)
|
|
- return (double)time((long *)0);
|
|
+ return (double)time(NULL);
|
|
|
|
tloc = (long)when;
|
|
|