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.

40 lines
906 B

  1. From 53006c85af7c8b69afa3847e12107588c1460c5a 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 clock_gettime
  5. ---
  6. src/usr.sbin/ntpd/ntpd.c | 1 +
  7. src/usr.sbin/ntpd/util.c | 2 ++
  8. 2 files changed, 3 insertions(+)
  9. diff --git a/src/usr.sbin/ntpd/ntpd.c b/src/usr.sbin/ntpd/ntpd.c
  10. index 4634fae..17ebf67 100644
  11. --- a/src/usr.sbin/ntpd/ntpd.c
  12. +++ b/src/usr.sbin/ntpd/ntpd.c
  13. @@ -30,6 +30,7 @@
  14. #include <stdio.h>
  15. #include <stdlib.h>
  16. #include <string.h>
  17. +#include <time.h>
  18. #include <unistd.h>
  19. #include <err.h>
  20. diff --git a/src/usr.sbin/ntpd/util.c b/src/usr.sbin/ntpd/util.c
  21. index 9d78d6e..638dc92 100644
  22. --- a/src/usr.sbin/ntpd/util.c
  23. +++ b/src/usr.sbin/ntpd/util.c
  24. @@ -17,8 +17,10 @@
  25. */
  26. #include <sys/time.h>
  27. +
  28. #include <limits.h>
  29. #include <stdio.h>
  30. +#include <time.h>
  31. #include "ntpd.h"
  32. --
  33. 1.9.1