summaryrefslogtreecommitdiff
path: root/games/moria
diff options
context:
space:
mode:
authordholland <dholland>2012-05-31 23:15:07 +0000
committerdholland <dholland>2012-05-31 23:15:07 +0000
commitb8cf4c9a4481eb96a303fa9735809735b41f6ce7 (patch)
treedd5db43c8e2648fa500760d6752eb6f6ade0a08d /games/moria
parent911209b002faa19a95076f9c9c6dfe84c9369f13 (diff)
downloadpkgsrc-b8cf4c9a4481eb96a303fa9735809735b41f6ce7.tar.gz
Use standard headers. Should fix Solaris build.
Diffstat (limited to 'games/moria')
-rw-r--r--games/moria/distinfo3
-rw-r--r--games/moria/patches/patch-source_files_c56
2 files changed, 58 insertions, 1 deletions
diff --git a/games/moria/distinfo b/games/moria/distinfo
index a81e59b6e1c..ac063eb4b15 100644
--- a/games/moria/distinfo
+++ b/games/moria/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2012/05/23 06:05:39 dholland Exp $
+$NetBSD: distinfo,v 1.12 2012/05/31 23:15:07 dholland Exp $
SHA1 (um5.5.2.tar.Z) = 69c7a7bf4e2c5be123ee7a82f5ad12ad5d0f5b08
RMD160 (um5.5.2.tar.Z) = 1556c76f151d7ea29da79071a57398f63d0b138b
@@ -16,3 +16,4 @@ SHA1 (patch-aj) = f0ac2b33ce021f3c2757bb37e9a5749842901556
SHA1 (patch-ak) = 3b39f9bd883cae5cd0a8a2561fcb1bcdbfa0bc1b
SHA1 (patch-al) = 0625fd70eeecaa7e0b5f5874b180244fb1f034c2
SHA1 (patch-am) = b5d250e9b870e3540c382c7e7c588e1f1c5a4910
+SHA1 (patch-source_files_c) = 56d4c89b4ab2b0e916f06a39cfb25b8cb6a52877
diff --git a/games/moria/patches/patch-source_files_c b/games/moria/patches/patch-source_files_c
new file mode 100644
index 00000000000..57e17468f6e
--- /dev/null
+++ b/games/moria/patches/patch-source_files_c
@@ -0,0 +1,56 @@
+$NetBSD: patch-source_files_c,v 1.1 2012/05/31 23:15:07 dholland Exp $
+
+Use standard headers.
+
+--- source/files.c~ 1994-07-22 01:47:22.000000000 +0000
++++ source/files.c
+@@ -7,6 +7,10 @@
+ included in all such copies. */
+
+ #include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
++#include <unistd.h>
++#include <fcntl.h>
+
+ #ifndef STDIO_LOADED
+ #define STDIO_LOADED
+@@ -17,38 +21,12 @@
+ #include <errno.h>
+ #endif
+
+-#ifdef __TURBOC__
+-#include <io.h>
+-#include <stdlib.h>
+-#endif /* __TURBOC__ */
+-
+ #include "config.h"
+ #include "constant.h"
+ #include "types.h"
+
+ #if defined(GEMDOS) && (__STDC__ == 0) && !defined(ATARIST_TC)
+ #include <access.h>
+-char *strcat();
+-#endif
+-
+-#ifdef VMS
+-#include <string.h>
+-#include <file.h>
+-#else
+-#ifdef USG
+-#ifndef ATARIST_MWC
+-#include <string.h>
+-#ifndef ATARIST_TC
+-#include <fcntl.h>
+-#endif
+-#endif
+-#else
+-#include <strings.h>
+-#include <sys/file.h>
+-#endif
+-#if defined(ultrix) || defined(USG)
+-void exit();
+-#endif
+ #endif
+
+ /* This must be included after fcntl.h, which has a prototype for `open'