summaryrefslogtreecommitdiff
path: root/sys/kern/sys_pipe.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2018-01-02 06:38:46 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2018-01-02 06:38:46 +0000
commit9af6c8a7de45771bb79724b5f905fc5f59b6f62e (patch)
treef010551408fac3a14d617d6709da5d95313f02a8 /sys/kern/sys_pipe.c
parenta2104963fbd9fdcae1c039cff75f922f316d0137 (diff)
Stop assuming <sys/file.h> will pull in fcntl.h when _KERNEL is defined.
ok millert@ sthen@
Diffstat (limited to 'sys/kern/sys_pipe.c')
-rw-r--r--sys/kern/sys_pipe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index 57c45d74335..439eec218e0 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_pipe.c,v 1.76 2017/02/11 19:51:06 guenther Exp $ */
+/* $OpenBSD: sys_pipe.c,v 1.77 2018/01/02 06:38:45 guenther Exp $ */
/*
* Copyright (c) 1996 John S. Dyson
@@ -29,6 +29,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
+#include <sys/fcntl.h>
#include <sys/file.h>
#include <sys/filedesc.h>
#include <sys/pool.h>