Browse Source

Add a missing include for time.h to get the definitions of clock_gettime and strftime.

ok jsing@ phessler@ naddy@
OPENBSD_5_7
bcook 9 years ago
parent
commit
d33f0cc042
2 changed files with 4 additions and 3 deletions
  1. +2
    -1
      src/usr.sbin/ntpd/ntpd.c
  2. +2
    -2
      src/usr.sbin/ntpd/util.c

+ 2
- 1
src/usr.sbin/ntpd/ntpd.c View File

@ -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 <henning@openbsd.org>
@ -30,6 +30,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <err.h>


+ 2
- 2
src/usr.sbin/ntpd/util.c View File

@ -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 <alexander.guy@andern.org>
@ -16,9 +16,9 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <sys/time.h>
#include <limits.h>
#include <stdio.h>
#include <time.h>
#include "ntpd.h"


Loading…
Cancel
Save