summaryrefslogtreecommitdiff
path: root/sys/dev
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/dev
parenta2104963fbd9fdcae1c039cff75f922f316d0137 (diff)
Stop assuming <sys/file.h> will pull in fcntl.h when _KERNEL is defined.
ok millert@ sthen@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/diskmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/diskmap.c b/sys/dev/diskmap.c
index 4550cffc264..a14f03d4689 100644
--- a/sys/dev/diskmap.c
+++ b/sys/dev/diskmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diskmap.c,v 1.16 2017/09/08 05:36:52 deraadt Exp $ */
+/* $OpenBSD: diskmap.c,v 1.17 2018/01/02 06:38:45 guenther Exp $ */
/*
* Copyright (c) 2009, 2010 Joel Sing <jsing@openbsd.org>
@@ -28,6 +28,7 @@
#include <sys/dkio.h>
#include <sys/disk.h>
#include <sys/disklabel.h>
+#include <sys/fcntl.h>
#include <sys/file.h>
#include <sys/filedesc.h>
#include <sys/lock.h>