From: Korynkevych, RomanX Date: Wed, 14 Dec 2016 11:11:28 +0000 (+0000) Subject: snmp_agent: define MIN macro if not defined. X-Git-Tag: collectd-5.8.0~171^2~9 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4fd753b3eb64b5e3130eb10b9783f219b909df2d;p=collectd.git snmp_agent: define MIN macro if not defined. Change-Id: Ic57c14abb8b6b31547e97e6c394b8c3147b1e6b2 Signed-off-by: Korynkevych, RomanX --- diff --git a/src/snmp_agent.c b/src/snmp_agent.c index 4b963d00..8c7b8228 100644 --- a/src/snmp_agent.c +++ b/src/snmp_agent.c @@ -40,6 +40,10 @@ #define ERR_BUF_SIZE 1024 #define TYPE_STRING -1 +#ifndef MIN +#define MIN(x, y) ((x) < (y) ? (x) : (y)) +#endif + struct oid_s { oid oid[MAX_OID_LEN]; size_t oid_len;