Make the previous commit compile..
This commit is contained in:
parent
fe6c0d4599
commit
4183b6b622
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36177
@ -38,7 +38,7 @@
|
||||
* from: Utah $Hdr: vm_mmap.c 1.6 91/10/21$
|
||||
*
|
||||
* @(#)vm_mmap.c 8.4 (Berkeley) 1/12/94
|
||||
* $Id: vm_mmap.c,v 1.75 1998/03/12 19:36:18 guido Exp $
|
||||
* $Id: vm_mmap.c,v 1.76 1998/05/18 18:26:27 guido Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -58,6 +58,7 @@
|
||||
#include <sys/file.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/vmmeter.h>
|
||||
|
||||
#include <miscfs/specfs/specdev.h>
|
||||
@ -299,6 +300,7 @@ mmap(p, uap)
|
||||
if ((flags & MAP_SHARED) != 0 ||
|
||||
(vp->v_type == VCHR && disablexworkaround)) {
|
||||
if ((fp->f_flag & FWRITE) != 0) {
|
||||
struct vattr va;
|
||||
if ((error =
|
||||
VOP_GETATTR(vp, &va,
|
||||
p->p_ucred, p)))
|
||||
|
Loading…
Reference in New Issue
Block a user