1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

emulation on host: mock lwIP functions used in latest dhcp renew patch (#5691)

This commit is contained in:
david gauchard 2019-01-29 16:59:17 +01:00 committed by GitHub
parent 05ac2e69e2
commit a0108fe69b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -74,6 +74,7 @@ MOCK_CPP_FILES_COMMON := $(addprefix common/,\
WMath.cpp \
MockSerial.cpp \
MockTools.cpp \
MocklwIP.cpp \
)
MOCK_CPP_FILES := $(MOCK_CPP_FILES_COMMON) $(addprefix common/,\

View File

@ -0,0 +1,15 @@
#include <lwip/netif.h>
extern "C"
{
netif* netif_list = nullptr;
err_t dhcp_renew(struct netif *netif)
{
(void)netif;
return ERR_OK;
}
} // extern "C"