summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/kvm_file2.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 /lib/libkvm/kvm_file2.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 'lib/libkvm/kvm_file2.c')
-rw-r--r--lib/libkvm/kvm_file2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_file2.c b/lib/libkvm/kvm_file2.c
index 183ee4e1666..4a9aa7384bc 100644
--- a/lib/libkvm/kvm_file2.c
+++ b/lib/libkvm/kvm_file2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm_file2.c,v 1.52 2017/01/21 05:42:04 guenther Exp $ */
+/* $OpenBSD: kvm_file2.c,v 1.53 2018/01/02 06:38:45 guenther Exp $ */
/*
* Copyright (c) 2009 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -105,6 +105,7 @@
#include <netinet6/ip6_var.h>
#endif
+#include <fcntl.h>
#include <nlist.h>
#include <kvm.h>
#include <db.h>