summaryrefslogtreecommitdiff
path: root/games/moria/files/patch-source::misc1.c
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2003-08-07 22:21:48 +0000
committerGreg Lewis <glewis@FreeBSD.org>2003-08-07 22:21:48 +0000
commit8c55fa010fd1ca750cd1fe71695f6e28ebd573f7 (patch)
treef4dac190ad5f30be669c1f62fabb69e517e0b721 /games/moria/files/patch-source::misc1.c
parentReplace B0RKEN with IGNORE - the port isn't broken per se, it just requires (diff)
. Make this compile cleanly on current. Mainly we want to use time_t
for time(), not long. Pointed out by: Pav Lucistnik <pav@oook.cz>
Notes
Notes: svn path=/head/; revision=86525
Diffstat (limited to 'games/moria/files/patch-source::misc1.c')
-rw-r--r--games/moria/files/patch-source::misc1.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/games/moria/files/patch-source::misc1.c b/games/moria/files/patch-source::misc1.c
new file mode 100644
index 000000000000..313c932c4a99
--- /dev/null
+++ b/games/moria/files/patch-source::misc1.c
@@ -0,0 +1,38 @@
+$FreeBSD$
+
+--- source/misc1.c.orig Thu Aug 7 16:07:21 2003
++++ source/misc1.c Thu Aug 7 16:08:58 2003
+@@ -28,7 +28,7 @@
+ #endif
+ #endif
+
+-#if !defined(ATARIST_MWC) && !defined(MAC) && !defined(VMS) && !defined(AMIGA)
++#if !defined(ATARIST_MWC) && !defined(MAC) && !defined(VMS) && !defined(AMIGA) && !defined(__FreeBSD__)
+ long time();
+ #endif
+ struct tm *localtime();
+@@ -45,7 +45,7 @@
+ register int32u clock_var;
+
+ if (seed == 0)
+-#ifdef MAC
++#if defined(MAC) || defined(__FreeBSD__)
+ clock_var = time((time_t *)0);
+ #else
+ clock_var = time((long *)0);
+@@ -89,10 +89,14 @@
+ int check_time()
+ {
+ #ifdef MORIA_HOU
++#if defined(MAC) || defined(__FreeBSD__)
++ time_t clock_var;
++#else
+ long clock_var;
++#endif
+ register struct tm *tp;
+
+-#ifdef MAC
++#if defined(MAC) || defined(__FreeBSD__)
+ clock_var = time((time_t *)0);
+ #else
+ clock_var = time((long *)0);