1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/astro/xphoon/files/patch-ab
Hidetoshi Shimokawa 2042bf1384 Fix time() conflicts on alpha.
- disable "long time()"
 - replace long with time_t for time counter.
1999-01-03 09:43:44 +00:00

31 lines
610 B
Plaintext

--- 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;