aboutsummaryrefslogtreecommitdiffstats
path: root/astro/xphoon/files/patch-ab
blob: 2745701a8932a1b8ff72d09ca65ed0bd1925de67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- xphoon.c.orig	Thu Sep 19 04:57:37 1991
+++ xphoon.c	Sun Jan  3 18:30:29 1999
@@ -31,9 +31,18 @@
 
 /* Externals. */
 
+#if (defined(__unix__) || defined(unix)) && !defined(USG)
+#include <sys/param.h>
+#endif
+
+#if (defined(BSD) && (BSD >= 199306))
+#include <stdlib.h>
+#include <time.h>
+#else
 extern char* malloc();
 extern long time();
 extern long random();
+#endif
 
 extern void getbits();
 extern double jtime();
@@ -65,7 +74,7 @@
     int blackflag, demoflag;
     int printpid;
     char* display_name;
-    long clock;
+    time_t clock;
     int pid, tty;
     int size;
     char* mooncopy;