From: bcook Date: Sun, 4 Jan 2015 01:11:24 +0000 (+0000) Subject: Add a missing include for time.h to get the definitions of clock_gettime and strftime. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7b6bdf5166cfd389d41b79007e6c387dfebb8460;p=openbsd Add a missing include for time.h to get the definitions of clock_gettime and strftime. ok jsing@ phessler@ naddy@ --- 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"