]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/thread.c
*: fixup snmp support
[mirror_frr.git] / lib / thread.c
index 8d75509b1d44b50dd5d9d137891e99d04e09dcb0..a8ccb8b3d0c002393d500c9fe8e4d20dd7852483 100644 (file)
 #include "sigevent.h"
 
 #if defined HAVE_SNMP && defined SNMP_AGENTX
+
+#ifdef HAVE_POLL
+#define QUAGGA_HAVE_POLL
+#endif
+
 #include <net-snmp/net-snmp-config.h>
 #include <net-snmp/net-snmp-includes.h>
 #include <net-snmp/agent/net-snmp-agent-includes.h>
 #include <net-snmp/agent/snmp_vars.h>
 
+#ifdef HAVE_POLL
+#undef HAVE_POLL
+#endif
+#ifdef QUAGGA_HAVE_POLL
+#define HAVE_POLL
+#endif
+
 extern int agentx_enabled;
 #endif