From 27f9b15fed29f671606ce6f5322c6407c0456615 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Tue, 30 Dec 2014 08:58:26 -0600 Subject: [PATCH 01/16] include time.h for strftime, clock_gettime Add a missing include for time.h to get the definitions of clock_gettime and strftime. --- src/usr.sbin/ntpd/ntpd.c | 1 + src/usr.sbin/ntpd/util.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/usr.sbin/ntpd/ntpd.c b/src/usr.sbin/ntpd/ntpd.c index 4634fae..17ebf67 100644 --- a/src/usr.sbin/ntpd/ntpd.c +++ b/src/usr.sbin/ntpd/ntpd.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include diff --git a/src/usr.sbin/ntpd/util.c b/src/usr.sbin/ntpd/util.c index 9d78d6e..638dc92 100644 --- a/src/usr.sbin/ntpd/util.c +++ b/src/usr.sbin/ntpd/util.c @@ -17,8 +17,10 @@ */ #include + #include #include +#include #include "ntpd.h" -- 1.9.1