Skip to content

Commit

Permalink
Fix undefined function errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Jun 18, 2024
1 parent 1433e63 commit d5bab6a
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion Sming/Components/lwip/.patches/lwip.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 @@
Expand Down Expand Up @@ -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);

0 comments on commit d5bab6a

Please sign in to comment.