]> granicus.if.org Git - php/commitdiff
Fix this for Wez and his antique ucd-snmp
authorfoobar <sniper@php.net>
Thu, 17 Oct 2002 06:39:55 +0000 (06:39 +0000)
committerfoobar <sniper@php.net>
Thu, 17 Oct 2002 06:39:55 +0000 (06:39 +0000)
ext/snmp/config.m4
ext/snmp/snmp.c

index 9c3b859c200d72ca5d81d2d7e0d7eb6a4acdfebc..4d1dd0831aaf659848c59ae3ce26af02b0fe3123 100644 (file)
@@ -91,6 +91,8 @@ if test "$PHP_SNMP" != "no"; then
     PHP_ADD_LIBRARY_WITH_PATH(snmp, $SNMP_LIBDIR, SNMP_SHARED_LIBADD)
   fi
 
+  AC_CHECK_FUNCS(snmp_parse_oid)
+
   PHP_NEW_EXTENSION(snmp, snmp.c, $ext_shared)
   PHP_SUBST(SNMP_SHARED_LIBADD)
   AC_DEFINE(HAVE_SNMP,1,[ ])
index 32f104ccd60367433fae1dadb0ac6fb9c0354a20..5a0ee9dffe6ca8ac3c19a3ae8677d1ab48bbe875 100644 (file)
 #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