summaryrefslogtreecommitdiff
path: root/emulators/pcemu/patches/patch-ac
blob: 311a1ed8eaaf09ae9c43ef8a51f95283fbb2305a (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
$NetBSD: patch-ac,v 1.3 2004/07/09 12:45:03 wiz Exp $

--- mfs.c.orig	1994-06-22 16:24:51.000000000 +0200
+++ mfs.c
@@ -319,7 +319,9 @@ TODO:
 #include <errno.h>
 #include <sys/param.h>
 #include <stdlib.h>
+#if !__STDC__
 #include <malloc.h>
+#endif
 
 #ifdef SOLARIS
 #include <fcntl.h>
@@ -327,9 +329,14 @@ TODO:
 #endif
 
 #if defined(SGI) || defined(RS6000)
-#include <sys/statfs.h>
+# include <sys/statfs.h>
 #else
-#include <sys/vfs.h>
+# include <sys/param.h>
+# if BSD >= 199103
+#  include <sys/mount.h>
+# else
+#  include <sys/vfs.h>
+# endif /* new BSD */
 #endif