From 7b6bdf5166cfd389d41b79007e6c387dfebb8460 Mon Sep 17 00:00:00 2001 From: bcook Date: Sun, 4 Jan 2015 01:11:24 +0000 Subject: [PATCH] Add a missing include for time.h to get the definitions of clock_gettime and strftime. ok jsing@ phessler@ naddy@ --- usr.sbin/ntpd/ntpd.c | 3 ++- usr.sbin/ntpd/util.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/usr.sbin/ntpd/ntpd.c b/usr.sbin/ntpd/ntpd.c index 20b499330c3..36823f65712 100644 --- a/usr.sbin/ntpd/ntpd.c +++ b/usr.sbin/ntpd/ntpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.c,v 1.79 2014/02/10 09:12:34 dtucker Exp $ */ +/* $OpenBSD: ntpd.c,v 1.80 2015/01/04 01:11:24 bcook Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -30,6 +30,7 @@ #include #include #include +#include #include #include diff --git a/usr.sbin/ntpd/util.c b/usr.sbin/ntpd/util.c index 839cf8c79cb..88f9a517a59 100644 --- a/usr.sbin/ntpd/util.c +++ b/usr.sbin/ntpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.15 2013/10/15 20:35:55 krw Exp $ */ +/* $OpenBSD: util.c,v 1.16 2015/01/04 01:11:24 bcook Exp $ */ /* * Copyright (c) 2004 Alexander Guy @@ -16,9 +16,9 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include #include +#include #include "ntpd.h" -- 2.20.1