From 01ac27b2a3cdfe014d954f62d7890bf8584f3966 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 13 Jan 2013 13:15:52 +0100 Subject: [PATCH] snmp: workaround unknown value for RONLY This happens when Net-SNMP has been compiled with NETSNMP_NO_LEGACY_DEFINITIONS defined. For example, on Mac OS X. This seems a good way to deprecate an API still widely used just because it is not used internally... --- src/daemon/agent.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/daemon/agent.h b/src/daemon/agent.h index 41144903..8f101bd0 100644 --- a/src/daemon/agent.h +++ b/src/daemon/agent.h @@ -23,6 +23,10 @@ #include #include +#ifndef RONLY +#define RONLY NETSNMP_OLDAPI_RONLY +#endif + #define LLDP_OID 1, 0, 8802, 1, 1, 2 #define SNMPTRAP_OID 1, 3, 6, 1, 6, 3, 1, 1, 4, 1, 0 static oid lldp_oid[] = {LLDP_OID}; -- 2.39.5