From: Brent Cook <bust...@gmail.com>

Do not assume that the system #includes happen to include a MAX macro
somewhere along the way.
---
 src/usr.sbin/ntpd/ntpd.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/usr.sbin/ntpd/ntpd.h b/src/usr.sbin/ntpd/ntpd.h
index aa9858b..61a447f 100644
--- a/src/usr.sbin/ntpd/ntpd.h
+++ b/src/usr.sbin/ntpd/ntpd.h
@@ -72,6 +72,10 @@
 #define        SENSOR_SCAN_INTERVAL            (5*60)
 #define        SENSOR_DEFAULT_REFID            "HARD"
 
+#ifndef MAX
+#define MAX(a, b) ((a) > (b) ? (a) : (b))
+#endif
+
 enum client_state {
        STATE_NONE,
        STATE_DNS_INPROGRESS,
-- 
1.9.1

Reply via email to