summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2016-08-27 01:50:07 +0000
committerguenther <guenther@openbsd.org>2016-08-27 01:50:07 +0000
commit23ec78dbc117859198ed1fa5bf7d93055899dc7a (patch)
treef278dbbd3cc821d8c374625aa4eaaf3ee0722d3d
parentPull in <sys/time.h> for gettimeofday() (diff)
downloadwireguard-openbsd-23ec78dbc117859198ed1fa5bf7d93055899dc7a.tar.xz
wireguard-openbsd-23ec78dbc117859198ed1fa5bf7d93055899dc7a.zip
Pull in <sys/time.h> for struct timespec, timeval, or clockrate
ok deraadt@
-rw-r--r--usr.sbin/kgmon/kgmon.c3
-rw-r--r--usr.sbin/ntpd/sensors.c3
-rw-r--r--usr.sbin/rbootd/utils.c3
-rw-r--r--usr.sbin/sensorsd/sensorsd.c3
-rw-r--r--usr.sbin/snmpd/timer.c3
-rw-r--r--usr.sbin/trpt/trpt.c3
6 files changed, 12 insertions, 6 deletions
diff --git a/usr.sbin/kgmon/kgmon.c b/usr.sbin/kgmon/kgmon.c
index 7d53f4b7829..357e4325414 100644
--- a/usr.sbin/kgmon/kgmon.c
+++ b/usr.sbin/kgmon/kgmon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kgmon.c,v 1.23 2015/11/16 17:29:43 deraadt Exp $ */
+/* $OpenBSD: kgmon.c,v 1.24 2016/08/27 01:50:07 guenther Exp $ */
/*
* Copyright (c) 1983, 1992, 1993
@@ -31,6 +31,7 @@
#include <sys/file.h>
#include <sys/sysctl.h>
+#include <sys/time.h>
#include <sys/gmon.h>
#include <errno.h>
#include <err.h>
diff --git a/usr.sbin/ntpd/sensors.c b/usr.sbin/ntpd/sensors.c
index 971276e80e4..d9273bea390 100644
--- a/usr.sbin/ntpd/sensors.c
+++ b/usr.sbin/ntpd/sensors.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sensors.c,v 1.50 2015/05/20 13:32:39 reyk Exp $ */
+/* $OpenBSD: sensors.c,v 1.51 2016/08/27 01:50:07 guenther Exp $ */
/*
* Copyright (c) 2006 Henning Brauer <henning@openbsd.org>
@@ -18,6 +18,7 @@
#include <sys/types.h>
#include <sys/queue.h>
+#include <sys/time.h>
#include <sys/sensors.h>
#include <sys/sysctl.h>
#include <sys/device.h>
diff --git a/usr.sbin/rbootd/utils.c b/usr.sbin/rbootd/utils.c
index 28a9654137b..13b321b2beb 100644
--- a/usr.sbin/rbootd/utils.c
+++ b/usr.sbin/rbootd/utils.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: utils.c,v 1.15 2016/05/29 02:19:02 guenther Exp $ */
+/* $OpenBSD: utils.c,v 1.16 2016/08/27 01:50:07 guenther Exp $ */
/* $NetBSD: utils.c,v 1.5.2.1 1995/11/14 08:45:46 thorpej Exp $ */
/*
@@ -43,6 +43,7 @@
* Author: Jeff Forys, University of Utah CSS
*/
+#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/usr.sbin/sensorsd/sensorsd.c b/usr.sbin/sensorsd/sensorsd.c
index 8374be81642..4c0750c6648 100644
--- a/usr.sbin/sensorsd/sensorsd.c
+++ b/usr.sbin/sensorsd/sensorsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sensorsd.c,v 1.59 2015/12/12 20:04:23 mmcc Exp $ */
+/* $OpenBSD: sensorsd.c,v 1.60 2016/08/27 01:50:07 guenther Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -21,6 +21,7 @@
#include <sys/types.h>
#include <sys/sysctl.h>
#include <sys/queue.h>
+#include <sys/time.h>
#include <sys/sensors.h>
#include <err.h>
diff --git a/usr.sbin/snmpd/timer.c b/usr.sbin/snmpd/timer.c
index 6d9778c8451..ab4670c1431 100644
--- a/usr.sbin/snmpd/timer.c
+++ b/usr.sbin/snmpd/timer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: timer.c,v 1.4 2015/01/16 00:05:13 deraadt Exp $ */
+/* $OpenBSD: timer.c,v 1.5 2016/08/27 01:50:07 guenther Exp $ */
/*
* Copyright (c) 2008 Reyk Floeter <reyk@openbsd.org>
@@ -18,6 +18,7 @@
#include <sys/queue.h>
#include <sys/types.h>
+#include <sys/time.h>
#include <sys/sched.h>
#include <sys/socket.h>
#include <sys/sysctl.h>
diff --git a/usr.sbin/trpt/trpt.c b/usr.sbin/trpt/trpt.c
index d266eb2d827..47ff59753b7 100644
--- a/usr.sbin/trpt/trpt.c
+++ b/usr.sbin/trpt/trpt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trpt.c,v 1.32 2015/11/20 15:52:57 deraadt Exp $ */
+/* $OpenBSD: trpt.c,v 1.33 2016/08/27 01:50:07 guenther Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -60,6 +60,7 @@
*/
#include <sys/queue.h>
+#include <sys/time.h>
#include <sys/socket.h>
#define PRUREQUESTS
#include <sys/protosw.h>