summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2017-11-20 12:28:30 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-11-20 12:28:30 -0600
commit882bdcdd60fa70cdb4e2bd3eba56af004995bfd9 (patch)
tree561568db10dad39954110eeabcb3807958d9283e
parent6506cb9d218a88f3d84f0d836f93e6ed92dbb360 (diff)
parent85f468cd643f489c39cfb119b4ba69014358cd7b (diff)
Merge "res_snmp: Declare RONLY if net-snmp headers do not." into 15
-rw-r--r--res/snmp/agent.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/res/snmp/agent.c b/res/snmp/agent.c
index 7ff78d56e..b8fcb07f6 100644
--- a/res/snmp/agent.c
+++ b/res/snmp/agent.c
@@ -63,6 +63,10 @@
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/net-snmp-agent-includes.h>
+#if !defined(RONLY) && defined(NETSNMP_OLDAPI_RONLY)
+#define RONLY NETSNMP_OLDAPI_RONLY
+#endif
+
#include "asterisk/paths.h" /* need ast_config_AST_SOCKET */
#include "asterisk/channel.h"
#include "asterisk/logger.h"