diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2003-08-07 22:21:48 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2003-08-07 22:21:48 +0000 |
commit | 8c55fa010fd1ca750cd1fe71695f6e28ebd573f7 (patch) | |
tree | f4dac190ad5f30be669c1f62fabb69e517e0b721 /games/moria/files/patch-source::death.c | |
parent | Replace 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::death.c')
-rw-r--r-- | games/moria/files/patch-source::death.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/games/moria/files/patch-source::death.c b/games/moria/files/patch-source::death.c new file mode 100644 index 000000000000..3e7795add028 --- /dev/null +++ b/games/moria/files/patch-source::death.c @@ -0,0 +1,34 @@ +$FreeBSD$ + +--- source/death.c.orig Thu Aug 7 16:02:45 2003 ++++ source/death.c Thu Aug 7 16:06:12 2003 +@@ -123,6 +123,7 @@ + #include <stdlib.h> + #endif + ++#ifndef __FreeBSD__ + #ifndef VMS + #ifndef MAC + #if !defined(ATARIST_MWC) && !defined(AMIGA) +@@ -130,18 +131,19 @@ + #endif + #endif + #endif ++#endif + + static void date(day) + char *day; + { + register char *tmp; +-#ifdef MAC ++#if defined(MAC) || defined(__FreeBSD__) + time_t clockvar; + #else + long clockvar; + #endif + +-#ifdef MAC ++#if defined(MAC) || defined(__FreeBSD__) + clockvar = time((time_t *) 0); + #else + clockvar = time((long *) 0); |