Make the previous commit compile..
This commit is contained in:
parent
fe6c0d4599
commit
4183b6b622
@ -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