summaryrefslogtreecommitdiffstats
path: root/sys/kern/exec_script.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2018-01-02 06:38:45 +0000
committerguenther <guenther@openbsd.org>2018-01-02 06:38:45 +0000
commit4b1f64dcf5feb790aab4be62991acb194f54fcf2 (patch)
tree82134dd99223bd8bda8ce7171ee05f42a28fe4bd /sys/kern/exec_script.c
parentFix an off-by-one in the free(9) "passed size was too small" check: (diff)
downloadwireguard-openbsd-4b1f64dcf5feb790aab4be62991acb194f54fcf2.tar.xz
wireguard-openbsd-4b1f64dcf5feb790aab4be62991acb194f54fcf2.zip
Stop assuming <sys/file.h> will pull in fcntl.h when _KERNEL is defined.
ok millert@ sthen@
Diffstat (limited to 'sys/kern/exec_script.c')
-rw-r--r--sys/kern/exec_script.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/exec_script.c b/sys/kern/exec_script.c
index b6fd5be23d5..2e51357dbe6 100644
--- a/sys/kern/exec_script.c
+++ b/sys/kern/exec_script.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_script.c,v 1.41 2018/01/01 08:55:43 florian Exp $ */
+/* $OpenBSD: exec_script.c,v 1.42 2018/01/02 06:38:45 guenther Exp $ */
/* $NetBSD: exec_script.c,v 1.13 1996/02/04 02:15:06 christos Exp $ */
/*
@@ -39,6 +39,7 @@
#include <sys/vnode.h>
#include <sys/lock.h>
#include <sys/namei.h>
+#include <sys/fcntl.h>
#include <sys/file.h>
#include <sys/filedesc.h>
#include <sys/exec.h>