summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2017-11-20 12:18:22 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-11-20 12:18:22 -0600
commitbe3a33f3d1c8089e7e7f74747debb2b239345321 (patch)
tree262b3162308c262edf3075c71e6faf64200a38e0 /res
parentb611cd6f9c2b5247787ca39eecf05777c0e26ba8 (diff)
parentd68e54b7ab5132c4b4b2c1da6367dec96dd9f455 (diff)
Merge "res_snmp: Declare RONLY if net-snmp headers do not." into 13
Diffstat (limited to 'res')
-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 9d1528dde..7cd895559 100644
--- a/res/snmp/agent.c
+++ b/res/snmp/agent.c
@@ -63,6 +63,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#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"