From: Vincent Bernat Date: Sun, 13 Jan 2013 12:15:52 +0000 (+0100) Subject: snmp: workaround unknown value for RONLY X-Git-Tag: 0.7.2~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01ac27b2a3cdfe014d954f62d7890bf8584f3966;p=thirdparty%2Flldpd.git 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... --- 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};