Portable build framework for OpenNTPD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1003 B

  1. From 27f9b15fed29f671606ce6f5322c6407c0456615 Mon Sep 17 00:00:00 2001
  2. From: Brent Cook <busterb@gmail.com>
  3. Date: Tue, 30 Dec 2014 08:58:26 -0600
  4. Subject: [PATCH 01/16] include time.h for strftime, clock_gettime
  5. Add a missing include for time.h to get the definitions of
  6. clock_gettime and strftime.
  7. ---
  8. src/usr.sbin/ntpd/ntpd.c | 1 +
  9. src/usr.sbin/ntpd/util.c | 2 ++
  10. 2 files changed, 3 insertions(+)
  11. diff --git a/src/usr.sbin/ntpd/ntpd.c b/src/usr.sbin/ntpd/ntpd.c
  12. index 4634fae..17ebf67 100644
  13. --- a/src/usr.sbin/ntpd/ntpd.c
  14. +++ b/src/usr.sbin/ntpd/ntpd.c
  15. @@ -30,6 +30,7 @@
  16. #include <stdio.h>
  17. #include <stdlib.h>
  18. #include <string.h>
  19. +#include <time.h>
  20. #include <unistd.h>
  21. #include <err.h>
  22. diff --git a/src/usr.sbin/ntpd/util.c b/src/usr.sbin/ntpd/util.c
  23. index 9d78d6e..638dc92 100644
  24. --- a/src/usr.sbin/ntpd/util.c
  25. +++ b/src/usr.sbin/ntpd/util.c
  26. @@ -17,8 +17,10 @@
  27. */
  28. #include <sys/time.h>
  29. +
  30. #include <limits.h>
  31. #include <stdio.h>
  32. +#include <time.h>
  33. #include "ntpd.h"
  34. --
  35. 1.9.1