summaryrefslogtreecommitdiff
path: root/games/moria/patches/patch-source_files_c
blob: 57e17468f6e7893a4e0415092ac03aa5dc4a4411 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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'