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.

27 lines
647 B

  1. From 802b2ccf5257b840ed252a2bc1a6cb70a37b3f57 Mon Sep 17 00:00:00 2001
  2. From: Brent Cook <busterb@gmail.com>
  3. Date: Wed, 31 Dec 2014 22:39:58 -0600
  4. Subject: [PATCH 14/14] add MAX macro
  5. ---
  6. src/usr.sbin/ntpd/ntpd.h | 4 ++++
  7. 1 file changed, 4 insertions(+)
  8. diff --git a/src/usr.sbin/ntpd/ntpd.h b/src/usr.sbin/ntpd/ntpd.h
  9. index f8d6382..5ac0bbb 100644
  10. --- a/src/usr.sbin/ntpd/ntpd.h
  11. +++ b/src/usr.sbin/ntpd/ntpd.h
  12. @@ -72,6 +72,10 @@
  13. #define SENSOR_SCAN_INTERVAL (5*60)
  14. #define SENSOR_DEFAULT_REFID "HARD"
  15. +#ifndef MAX
  16. +#define MAX(a, b) ((a) > (b) ? (a) : (b))
  17. +#endif
  18. +
  19. enum client_state {
  20. STATE_NONE,
  21. STATE_DNS_INPROGRESS,
  22. --
  23. 1.9.1