From e05e501118167f7a5083db6330c745d8335c9396 Mon Sep 17 00:00:00 2001 From: guenther Date: Sun, 18 Jan 2015 20:35:44 +0000 Subject: [PATCH] Forward declare 'struct file' so that libkvm and others that indirectly pull in sys/uio.h with _KERNEL defined don't warn. ok deraadt@ --- sys/sys/uio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 *, -- 2.20.1