pkgsrc/games/moria/patches/patch-source_files_c

56 lines
1 KiB
Text

$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'