File apcupsd-3.14.6-undef-MIB-for-new-net-snmp.diff of Package apcupsd

Index: src/drivers/snmp/snmp.h
===================================================================
--- src/drivers/snmp/snmp.h.orig
+++ src/drivers/snmp/snmp.h
@@ -46,10 +46,18 @@
 #  include <net-snmp/library/snmp_client.h>
 # endif
 
 #endif
 
+/* net-snmp now defines MIB:
+ net-snmp/library/mib.h:#define NETSNMP_MIB2_OID 1, 3, 6, 1, 2, 1
+ net-snmp/library/mib.h:#define MIB NETSNMP_MIB2_OID
+ */
+#ifdef MIB
+#undef MIB
+#endif
+
 #include "powernet-mib.h"
 #include "rfc1628-mib.h"
 
 #include <sys/param.h>   /* for MIN() */