From 4f35691d1d26210714d5c6953ee8d5f75b12fffd Mon Sep 17 00:00:00 2001 From: Gurucharan Shetty Date: Tue, 9 Sep 2014 13:19:22 -0700 Subject: [PATCH] rconn: Prevent redefinition of 'MAX_MONITORS' in Windows. Windows already has a MAX_MONITORS defined in ddeml.h. Signed-off-by: Gurucharan Shetty --- lib/rconn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rconn.c b/lib/rconn.c index c9b68bb0b8c..5c288069881 100644 --- a/lib/rconn.c +++ b/lib/rconn.c @@ -137,8 +137,8 @@ struct rconn { uint8_t dscp; /* Messages sent or received are copied to the monitor connections. */ -#define MAX_MONITORS 8 - struct vconn *monitors[8]; +#define MAXIMUM_MONITORS 8 + struct vconn *monitors[MAXIMUM_MONITORS]; size_t n_monitors; uint32_t allowed_versions;