summaryrefslogtreecommitdiff
path: root/time/phoon/patches/patch-ac
blob: f04cf06e396a25fc72132038d9568c7ebed56e73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ac,v 1.1 2012/08/28 17:14:13 is Exp $

--- phoon.c.orig	2005-05-20 19:10:24.000000000 +0000
+++ phoon.c
@@ -45,6 +45,7 @@
 */
 
 
+#include <stdlib.h>
 #include <stdio.h>
 #include <math.h>
 #include <time.h>
@@ -354,7 +355,7 @@ putmoon( time_t t, int numlines, char* a
     struct tm* tmP;
     double jd, pctphase, angphase, cphase, aom, cdist, cangdia, csund, csuang;
     double phases[2], which[2];
-    long clocknow;
+    time_t clocknow;
     int atflrlen, atflridx, numcols, lin, col, midlin;
     double mcap, yrad, xrad, y, xright, xleft;
     int colright, colleft;