From 8c55fa010fd1ca750cd1fe71695f6e28ebd573f7 Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Thu, 7 Aug 2003 22:21:48 +0000 Subject: . Make this compile cleanly on current. Mainly we want to use time_t for time(), not long. Pointed out by: Pav Lucistnik --- games/moria/files/patch-source::main.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 games/moria/files/patch-source::main.c (limited to 'games/moria/files/patch-source::main.c') diff --git a/games/moria/files/patch-source::main.c b/games/moria/files/patch-source::main.c new file mode 100644 index 000000000000..a07015ed4d03 --- /dev/null +++ b/games/moria/files/patch-source::main.c @@ -0,0 +1,31 @@ +$FreeBSD$ + +--- source/main.c.orig Thu Jul 21 19:47:27 1994 ++++ source/main.c Thu Aug 7 16:12:13 2003 +@@ -88,6 +88,7 @@ + #include + #endif + ++#ifndef __FreeBSD__ + #ifndef VMS + #ifndef MAC + #ifndef GEMDOS +@@ -98,6 +99,9 @@ + char *getenv(); + #endif + #endif ++#else ++#include ++#endif + + #ifndef MAC + #ifndef AMIGA +@@ -360,7 +364,7 @@ + else + { /* Create character */ + create_character(); +-#ifdef MAC ++#if defined(MAC) || defined(__FreeBSD__) + birth_date = time ((time_t *)0); + #else + birth_date = time ((long *)0); -- cgit v1.2.3