summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/libntp/humandate.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/libntp/humandate.c')
-rw-r--r--contrib/ntp/libntp/humandate.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/contrib/ntp/libntp/humandate.c b/contrib/ntp/libntp/humandate.c
index f663c9e..7995633 100644
--- a/contrib/ntp/libntp/humandate.c
+++ b/contrib/ntp/libntp/humandate.c
@@ -2,16 +2,11 @@
* humandate - convert an NTP (or the current) time to something readable
*/
#include <stdio.h>
-#include "time.h"
#include "ntp_fp.h"
-#include "ntp_unixtime.h" /* includes <sys/time.h> */
+#include "ntp_unixtime.h" /* includes <sys/time.h> and <time.h> */
#include "lib_strbuf.h"
#include "ntp_stdlib.h"
-#ifdef TIME_WITH_SYS_TIME
-#include <time.h>
-#endif
-
static const char *months[] = {
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
OpenPOWER on IntegriCloud