diff options
author | simokawa <simokawa@FreeBSD.org> | 1999-01-03 09:43:44 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 1999-01-03 09:43:44 +0000 |
commit | d8826f3ad0191f522641287229548c862dd3e8e5 (patch) | |
tree | 71d225408eb4a31147618f4fa24d34d44c8c330c /astro/xphoon | |
parent | fc7eaad78f8a19a09825717a89880e0d6eacad8c (diff) | |
download | FreeBSD-ports-d8826f3ad0191f522641287229548c862dd3e8e5.zip FreeBSD-ports-d8826f3ad0191f522641287229548c862dd3e8e5.tar.gz |
Fix time() conflicts on alpha.
- disable "long time()"
- replace long with time_t for time counter.
Diffstat (limited to 'astro/xphoon')
-rw-r--r-- | astro/xphoon/files/patch-ab | 30 | ||||
-rw-r--r-- | astro/xphoon/files/patch-ac | 42 |
2 files changed, 72 insertions, 0 deletions
diff --git a/astro/xphoon/files/patch-ab b/astro/xphoon/files/patch-ab new file mode 100644 index 0000000..2745701 --- /dev/null +++ b/astro/xphoon/files/patch-ab @@ -0,0 +1,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; diff --git a/astro/xphoon/files/patch-ac b/astro/xphoon/files/patch-ac new file mode 100644 index 0000000..e5e35cd --- /dev/null +++ b/astro/xphoon/files/patch-ac @@ -0,0 +1,42 @@ +--- dtime.c.orig Sat Sep 14 14:15:25 1991 ++++ dtime.c Sun Jan 3 18:36:48 1999 +@@ -26,13 +26,20 @@ + #include <sys/timeb.h> + #endif /*SYS5*/ + ++ ++#if (defined(__unix__) || defined(unix)) && !defined(USG) ++#include <sys/param.h> ++#endif ++ ++#if !(defined(BSD) && (BSD >= 199306)) + extern long time(); + struct tm* localtime(); ++#endif + + struct tws* + dtwstime() + { +- long clock; ++ time_t clock; + + (void) time( &clock ); + return dlocaltime( &clock ); +@@ -40,7 +47,7 @@ + + struct tws* + dlocaltime( clock ) +- long* clock; ++ time_t* clock; + { + register struct tm* tm; + #ifndef SYS5 +@@ -48,7 +55,7 @@ + #endif not SYS5 + static struct tws tw; + +- if ( clock == (long*) 0 ) ++ if ( clock == (time_t*) 0 ) + return (struct tws*) 0; + tw.tw_flags = TW_NULL; + |