<p>Corey Farrell has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7286">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_snmp: Declare RONLY if net-snmp headers do not.<br><br>Some net-snmp builds do not provide the RONLY declare, only<br>NETSNMP_OLDAPI_RONLY. Map RONLY to NETSNMP_OLDAPI_RONLY to get around<br>this error.<br><br>Change-Id: Ida5c7ad9406515825485c4d3b4a34fd6ad0da577<br>---<br>M res/snmp/agent.c<br>1 file changed, 4 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/86/7286/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/snmp/agent.c b/res/snmp/agent.c<br>index 7ff78d5..b8fcb07 100644<br>--- a/res/snmp/agent.c<br>+++ b/res/snmp/agent.c<br>@@ -63,6 +63,10 @@<br> #include <net-snmp/net-snmp-includes.h><br> #include <net-snmp/agent/net-snmp-agent-includes.h><br> <br>+#if !defined(RONLY) && defined(NETSNMP_OLDAPI_RONLY)<br>+#define RONLY NETSNMP_OLDAPI_RONLY<br>+#endif<br>+<br> #include "asterisk/paths.h" /* need ast_config_AST_SOCKET */<br> #include "asterisk/channel.h"<br> #include "asterisk/logger.h"<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7286">change 7286</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/7286"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ida5c7ad9406515825485c4d3b4a34fd6ad0da577 </div>
<div style="display:none"> Gerrit-Change-Number: 7286 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>