Make it compile again. Include <sys/socket.h> before setting _KERNEL.
Otherwise the chain pstat.c -> <sys/mount.h> -> <sys/socket.h> fails with 'opt_compat_freebsd.h: No such file or directory' ...
This commit is contained in:
parent
254cc8286b
commit
653c43d0f5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pstat.c,v 1.41 1998/03/29 12:24:44 mycroft Exp $ */
|
||||
/* $NetBSD: pstat.c,v 1.42 1998/06/26 14:17:01 hannken Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1980, 1991, 1993, 1994
|
||||
|
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1991, 1993, 1994\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)pstat.c 8.16 (Berkeley) 5/9/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: pstat.c,v 1.41 1998/03/29 12:24:44 mycroft Exp $");
|
||||
__RCSID("$NetBSD: pstat.c,v 1.42 1998/06/26 14:17:01 hannken Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -52,6 +52,7 @@ __RCSID("$NetBSD: pstat.c,v 1.41 1998/03/29 12:24:44 mycroft Exp $");
|
|||
#include <sys/vnode.h>
|
||||
#include <sys/map.h>
|
||||
#include <sys/ucred.h>
|
||||
#include <sys/socket.h>
|
||||
#define _KERNEL
|
||||
#include <sys/file.h>
|
||||
#include <ufs/ufs/quota.h>
|
||||
|
|
Loading…
Reference in New Issue