diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2003-08-07 22:28:58 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2003-08-07 22:28:58 +0000 |
commit | d8dd7bab7bc08995892bd3fa47eb70243d4cddd4 (patch) | |
tree | 8fb12325ccb9de6cb4ab4f730ab3a7d547d46de5 /games/moria | |
parent | . Make this compile cleanly on current. Mainly we want to use time_t (diff) |
. Some missed instances where we should be using time_t rather than long
for times.
Diffstat (limited to 'games/moria')
-rw-r--r-- | games/moria/files/patch-source::save.c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/games/moria/files/patch-source::save.c b/games/moria/files/patch-source::save.c new file mode 100644 index 000000000000..bea0b8b490f3 --- /dev/null +++ b/games/moria/files/patch-source::save.c @@ -0,0 +1,40 @@ +$FreeBSD$ + +--- source/save.c.orig Thu Aug 7 16:24:56 2003 ++++ source/save.c Thu Aug 7 16:26:16 2003 +@@ -102,7 +102,7 @@ + #endif + + #if !defined(ATARIST_MWC) +-#ifdef MAC ++#if defined(MAC) || defined(__FreeBSD__) + #include <time.h> + #else + long time(); +@@ -331,7 +331,7 @@ + } + + /* save the current time in the savefile */ +-#ifdef MAC ++#if defined(MAC) || defined(__FreeBSD__) + l = time((time_t *)0); + #else + l = time((long *)0); +@@ -1029,7 +1029,7 @@ + || (version_min == 2 && patch_level >= 2)) + rd_long ((int32u *)&birth_date); + else +-#ifdef MAC ++#if defined(MAC) || defined(__FreeBSD__) + birth_date = time((time_t *)0); + #else + birth_date = time((long *)0); +@@ -1253,7 +1253,7 @@ + /* rotate store inventory, depending on how old the save file */ + /* is foreach day old (rounded up), call store_maint */ + /* calculate age in seconds */ +-#ifdef MAC ++#if defined(MAC) || defined(__FreeBSD__) + start_time = time((time_t *)0); + #else + start_time = time((long *)0); |