mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Fix this for Wez and his antique ucd-snmp
This commit is contained in:
parent
de597eb3c6
commit
9870028d05
@ -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,[ ])
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user