sniper Thu Oct 17 02:39:55 2002 EDT
Modified files:
/php4/ext/snmp config.m4 snmp.c
Log:
Fix this for Wez and his antique ucd-snmp
Index: php4/ext/snmp/config.m4
diff -u php4/ext/snmp/config.m4:1.27 php4/ext/snmp/config.m4:1.28
--- php4/ext/snmp/config.m4:1.27 Mon Oct 14 20:43:34 2002
+++ php4/ext/snmp/config.m4 Thu Oct 17 02:39:55 2002
@@ -1,5 +1,5 @@
dnl
-dnl $Id: config.m4,v 1.27 2002/10/15 00:43:34 sniper Exp $
+dnl $Id: config.m4,v 1.28 2002/10/17 06:39:55 sniper Exp $
dnl
PHP_ARG_WITH(snmp,for SNMP support,
@@ -90,6 +90,8 @@
PHP_ADD_INCLUDE($SNMP_INCDIR)
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)
Index: php4/ext/snmp/snmp.c
diff -u php4/ext/snmp/snmp.c:1.66 php4/ext/snmp/snmp.c:1.67
--- php4/ext/snmp/snmp.c:1.66 Wed Oct 16 22:51:22 2002
+++ php4/ext/snmp/snmp.c Thu Oct 17 02:39:55 2002
@@ -17,7 +17,7 @@
| Steven Lawrance <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: snmp.c,v 1.66 2002/10/17 02:51:22 sniper Exp $ */
+/* $Id: snmp.c,v 1.67 2002/10/17 06:39:55 sniper Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -88,6 +88,11 @@
#include "parse.h"
#include "mib.h"
#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! */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php