]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
snmp: workaround unknown value for RONLY
authorVincent Bernat <bernat@luffy.cx>
Sun, 13 Jan 2013 12:15:52 +0000 (13:15 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sun, 13 Jan 2013 12:15:52 +0000 (13:15 +0100)
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... <grin>

src/daemon/agent.h

index 411449033764a03dc9efa3b8a831f26974bd4531..8f101bd02f4c05665f259e9d84de2f299d91c365 100644 (file)
 #include <net-snmp/agent/net-snmp-agent-includes.h>
 #include <net-snmp/agent/snmp_vars.h>
 
+#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};