summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2016-08-27 04:07:42 +0000
committerguenther <guenther@openbsd.org>2016-08-27 04:07:42 +0000
commit5bc099a9f82e63af38ae951e524c915ca1004813 (patch)
treeceecb1bcfe4a0adad150ae3f3cd7b11820927d57 /usr.bin
parentPull in <sys/time.h> for struct timeval (diff)
downloadwireguard-openbsd-5bc099a9f82e63af38ae951e524c915ca1004813.tar.xz
wireguard-openbsd-5bc099a9f82e63af38ae951e524c915ca1004813.zip
Pull in <sys/time.h> for struct timespec and timeval
ok deraadt@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/unix.c3
-rw-r--r--usr.bin/nfsstat/nfsstat.c3
-rw-r--r--usr.bin/top/display.c3
-rw-r--r--usr.bin/vi/common/common.h3
4 files changed, 8 insertions, 4 deletions
diff --git a/usr.bin/netstat/unix.c b/usr.bin/netstat/unix.c
index 2bb4c2c0d0a..4888469441d 100644
--- a/usr.bin/netstat/unix.c
+++ b/usr.bin/netstat/unix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: unix.c,v 1.28 2015/08/24 15:55:53 bluhm Exp $ */
+/* $OpenBSD: unix.c,v 1.29 2016/08/27 04:07:42 guenther Exp $ */
/* $NetBSD: unix.c,v 1.13 1995/10/03 21:42:48 thorpej Exp $ */
/*-
@@ -38,6 +38,7 @@
#include <sys/protosw.h>
#include <sys/mbuf.h>
#include <sys/sysctl.h>
+#include <sys/time.h>
#include <sys/un.h>
#include <sys/unpcb.h>
#define _KERNEL
diff --git a/usr.bin/nfsstat/nfsstat.c b/usr.bin/nfsstat/nfsstat.c
index ab6f05ebd36..ba9cf2fde5a 100644
--- a/usr.bin/nfsstat/nfsstat.c
+++ b/usr.bin/nfsstat/nfsstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfsstat.c,v 1.35 2015/10/23 08:18:30 tedu Exp $ */
+/* $OpenBSD: nfsstat.c,v 1.36 2016/08/27 04:07:42 guenther Exp $ */
/* $NetBSD: nfsstat.c,v 1.7 1996/03/03 17:21:30 thorpej Exp $ */
/*
@@ -36,6 +36,7 @@
#include <sys/types.h>
#include <sys/mount.h>
#include <sys/sysctl.h>
+#include <sys/time.h>
#include <nfs/rpcv2.h>
#include <nfs/nfsproto.h>
#include <nfs/nfs.h>
diff --git a/usr.bin/top/display.c b/usr.bin/top/display.c
index a864cbcbd4f..bb8ca889b67 100644
--- a/usr.bin/top/display.c
+++ b/usr.bin/top/display.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: display.c,v 1.50 2015/10/26 12:44:22 tedu Exp $ */
+/* $OpenBSD: display.c,v 1.51 2016/08/27 04:07:42 guenther Exp $ */
/*
* Top users/processes display for Unix
@@ -46,6 +46,7 @@
*/
#include <sys/types.h>
+#include <sys/time.h>
#include <sys/sched.h>
#include <curses.h>
#include <errno.h>
diff --git a/usr.bin/vi/common/common.h b/usr.bin/vi/common/common.h
index d7d05c086c4..5eca0f9252a 100644
--- a/usr.bin/vi/common/common.h
+++ b/usr.bin/vi/common/common.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: common.h,v 1.8 2015/11/19 07:53:31 bentley Exp $ */
+/* $OpenBSD: common.h,v 1.9 2016/08/27 04:07:42 guenther Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -11,6 +11,7 @@
* @(#)common.h 10.13 (Berkeley) 9/25/96
*/
+#include <sys/time.h>
#include <db.h>
#include <regex.h>