summaryrefslogtreecommitdiff
path: root/ext/snmp/snmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/snmp/snmp.c')
-rw-r--r--ext/snmp/snmp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c
index 32f104ccd6..5a0ee9dffe 100644
--- a/ext/snmp/snmp.c
+++ b/ext/snmp/snmp.c
@@ -90,6 +90,11 @@
#include "version.h"
#endif
+/* For really old ucd-snmp versions.. */
+#ifndef HAVE_SNMP_PARSE_OID
+#define snmp_parse_oid read_objid
+#endif
+
/* ucd-snmp 3.3.1 changed the name of a few #defines... They've been changed back to the original ones in 3.5.3! */
#ifndef SNMP_MSG_GET
#define SNMP_MSG_GET GET_REQ_MSG