summaryrefslogtreecommitdiff
path: root/games/moria/files/patch-source__main.c
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-29 17:12:47 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-29 17:12:47 +0000
commit08a006d08a4c35d2c3ecc9a3d10cf7fd14661a84 (patch)
tree0cfc4f0736babb895eb97a65c6defe632a0249c7 /games/moria/files/patch-source__main.c
parenteditors/fte: update to 20110708 (diff)
Rename all patches that contain '::' as a path separator, and use
'__' instead.
Diffstat (limited to 'games/moria/files/patch-source__main.c')
-rw-r--r--games/moria/files/patch-source__main.c31
1 files changed, 31 insertions, 0 deletions
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 <time.h>
+ #endif
+
++#ifndef __FreeBSD__
+ #ifndef VMS
+ #ifndef MAC
+ #ifndef GEMDOS
+@@ -98,6 +99,9 @@
+ char *getenv();
+ #endif
+ #endif
++#else
++#include <stdlib.h>
++#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);