From d5bab6ab396839a1605d4538e885de8530a3a56a Mon Sep 17 00:00:00 2001 From: mikee47 Date: Tue, 18 Jun 2024 14:28:43 +0100 Subject: [PATCH] Fix undefined function errors --- Sming/Components/lwip/.patches/lwip.patch | 31 ++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/Sming/Components/lwip/.patches/lwip.patch b/Sming/Components/lwip/.patches/lwip.patch index 0db690c112..b3f12d4a8f 100644 --- a/Sming/Components/lwip/.patches/lwip.patch +++ b/Sming/Components/lwip/.patches/lwip.patch @@ -62,6 +62,26 @@ index a56b59cb..2e30f1b7 100644 if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.9) if(LWIP_USE_SANITIZERS) list(APPEND LWIP_COMPILER_FLAGS_GNU_CLANG +diff --git a/contrib/ports/win32/pcapif_helper.c b/contrib/ports/win32/pcapif_helper.c +index 9cc889c1..90e84dd2 100644 +--- a/contrib/ports/win32/pcapif_helper.c ++++ b/contrib/ports/win32/pcapif_helper.c +@@ -114,6 +114,7 @@ pcapifh_free_readonly_mem(void *data) + } + } + ++#if 0 + /** + * Npcap keeps its DLLs in a different directory for compatibility with winpcap. + * Make sure they get found by adding that directory to the DLL search path. +@@ -140,6 +141,7 @@ void pcapifh_init_npcap(void) + } + } + } ++#endif + + #else /* WIN32 */ + diff --git a/contrib/ports/win32/sys_arch.c b/contrib/ports/win32/sys_arch.c index 84f5775e..f4078838 100644 --- a/contrib/ports/win32/sys_arch.c @@ -104,7 +124,7 @@ index 84f5775e..f4078838 100644 /* This is an example implementation for LWIP_PLATFORM_DIAG: diff --git a/contrib/ports/win32/pcapif.c b/contrib/ports/win32/pcapif.c -index 6bf58f02..e8f26ac7 100644 +index 6bf58f02..063a41b9 100644 --- a/contrib/ports/win32/pcapif.c +++ b/contrib/ports/win32/pcapif.c @@ -40,16 +40,7 @@ @@ -140,3 +160,12 @@ index 6bf58f02..e8f26ac7 100644 /* Scan the list printing every entry */ for (d = alldevs, i = 0; d != NULL; d = d->next, i++) { char *desc = d->description; +@@ -1063,8 +1054,6 @@ pcapif_init(struct netif *netif) + int local_index; + SYS_ARCH_DECL_PROTECT(lev); + +- pcapifh_init_npcap(); +- + SYS_ARCH_PROTECT(lev); + local_index = ethernetif_index++; + SYS_ARCH_UNPROTECT(lev);