Fix compile of SNMP on MSVC

This commit is contained in:
Dirk Ziegelmeier 2016-01-04 11:26:36 +01:00
parent 6352106aaa
commit 44617bfa9b
5 changed files with 6 additions and 1 deletions

View File

@ -40,6 +40,8 @@
#include "lwip/apps/snmp.h"
#include "lwip/apps/snmp_core.h"
#include "snmp_core_priv.h"
#include <string.h>
#if (LWIP_SNMP && (SNMP_TRAP_DESTINATIONS<=0))
#error "If you want to use SNMP, you have to define SNMP_TRAP_DESTINATIONS>=1 in your lwipopts.h"

View File

@ -2307,7 +2307,7 @@ udp_endpointTable_get_cell_value(const u32_t* column, const u32_t* row_oid, u8_t
ip_addr_t local_ip, remote_ip;
u16_t local_port, remote_port;
struct udp_pcb *pcb;
int index = 0;
u8_t index = 0;
LWIP_UNUSED_ARG(value_len);

View File

@ -36,6 +36,7 @@
#include "snmp_pbuf_stream.h"
#include "lwip/def.h"
#include <string.h>
err_t
snmp_pbuf_stream_init(struct snmp_pbuf_stream* pbuf_stream, struct pbuf* p, u16_t offset, u16_t length)

View File

@ -36,6 +36,7 @@
#include "lwip/apps/snmp_core.h"
#include "lwip/apps/snmp_table.h"
#include <string.h>
snmp_err_t snmp_table_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance)
{

View File

@ -35,6 +35,7 @@
#include "lwip/apps/snmp_core.h"
#include "lwip/mem.h"
#include "lwip/sys.h"
#include <string.h>
struct threadsync_data
{