blob: df2821dbcad6f84f6f01eb64a3a73bdb4b5c714a (
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
|
# $NetBSD: patch-ac,v 1.1.1.1 1999/03/31 06:34:07 garbled Exp $
*** mfs.c.orig Wed Jun 22 16:24:51 1994
--- mfs.c Tue Jan 24 18:41:20 1995
***************
*** 319,325 ****
--- 319,327 ----
#include <errno.h>
#include <sys/param.h>
#include <stdlib.h>
+ #if !__STDC__
#include <malloc.h>
+ #endif
#ifdef SOLARIS
#include <fcntl.h>
***************
*** 327,335 ****
#endif
#if defined(SGI) || defined(RS6000)
! #include <sys/statfs.h>
#else
! #include <sys/vfs.h>
#endif
--- 329,342 ----
#endif
#if defined(SGI) || defined(RS6000)
! # include <sys/statfs.h>
#else
! # include <sys/param.h>
! # if BSD >= 199103
! # include <sys/mount.h>
! # else
! # include <sys/vfs.h>
! # endif /* new BSD */
#endif
*** mfs.h.orig Wed Jun 22 16:24:51 1994
--- mfs.h Tue Jan 24 18:37:18 1995
***************
*** 45,51 ****
--- 45,53 ----
#include "mfs_link.h"
+ #if BSD < 199306 /* newer BSDs have it in <stdio.h> */
extern char *sys_errlist[];
+ #endif
#if !defined(__hpux) && !defined(SOLARIS) && !defined(SGI) && !defined(RS6000)
#define strerror(x) sys_errlist[x]
|