From 4fd753b3eb64b5e3130eb10b9783f219b909df2d Mon Sep 17 00:00:00 2001 From: "Korynkevych, RomanX" Date: Wed, 14 Dec 2016 11:11:28 +0000 Subject: [PATCH] snmp_agent: define MIN macro if not defined. Change-Id: Ic57c14abb8b6b31547e97e6c394b8c3147b1e6b2 Signed-off-by: Korynkevych, RomanX --- src/snmp_agent.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.30.2