From: guenther Date: Sun, 18 Jan 2015 20:35:44 +0000 (+0000) Subject: Forward declare 'struct file' so that libkvm and others that indirectly pull X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e05e501118167f7a5083db6330c745d8335c9396;p=openbsd Forward declare 'struct file' so that libkvm and others that indirectly pull in sys/uio.h with _KERNEL defined don't warn. ok deraadt@ --- diff --git a/sys/sys/uio.h b/sys/sys/uio.h index c0aadca0477..c7282f2e768 100644 --- a/sys/sys/uio.h +++ b/sys/sys/uio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uio.h,v 1.17 2013/04/02 21:32:06 kettenis Exp $ */ +/* $OpenBSD: uio.h,v 1.18 2015/01/18 20:35:44 guenther Exp $ */ /* $NetBSD: uio.h,v 1.12 1996/02/09 18:25:45 christos Exp $ */ /* @@ -96,6 +96,7 @@ __END_DECLS #else int ureadc(int c, struct uio *); +struct file; int dofilereadv(struct proc *, int, struct file *, const struct iovec *, int, int, off_t *, register_t *); int dofilewritev(struct proc *, int, struct file *,