aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2018-03-27 15:20:03 +0000
committerBrooks Davis <brooks@FreeBSD.org>2018-03-27 15:20:03 +0000
commit34a77b974108eecc559c97b3ef170e3f18ffb644 (patch)
treeaf4d51237029eeac6c7bd3bc6f037b8d302626b5 /sys/kern
parent2cb2ba6df8e31d389fd4bbfa73f0e6227dccb056 (diff)
downloadsrc-34a77b974108eecc559c97b3ef170e3f18ffb644.tar.gz
src-34a77b974108eecc559c97b3ef170e3f18ffb644.zip
Move uio enums to sys/_uio.h.
Include _uio.h instead of uio.h in several headers to reduce header polution. Fix a few places that relied on header polution to get the uio.h header. I have not moved struct uio as many more things that use it rely on header polution to get other definitions from uio.h. Reviewed by: cem, kib, markj Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14811
Notes
Notes: svn path=/head/; revision=331621
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/tty_pts.c1
-rw-r--r--sys/kern/uipc_syscalls.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/tty_pts.c b/sys/kern/tty_pts.c
index 5bbef4280462..0a7986e0c3a9 100644
--- a/sys/kern/tty_pts.c
+++ b/sys/kern/tty_pts.c
@@ -64,6 +64,7 @@ __FBSDID("$FreeBSD$");
#include <sys/systm.h>
#include <sys/tty.h>
#include <sys/ttycom.h>
+#include <sys/uio.h>
#include <sys/user.h>
#include <machine/stdarg.h>
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c
index 90da323d752b..40df23c9bd0a 100644
--- a/sys/kern/uipc_syscalls.c
+++ b/sys/kern/uipc_syscalls.c
@@ -58,6 +58,7 @@ __FBSDID("$FreeBSD$");
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <sys/syscallsubr.h>
+#include <sys/uio.h>
#ifdef KTRACE
#include <sys/ktrace.h>
#endif