Added lwIP 2.1.2 errno patch
This commit is contained in:
6
Makefile
6
Makefile
@@ -7,7 +7,11 @@ CLEAN_SCRIPT := ./ports/clean.sh
|
|||||||
PACKAGE_SCRIPT := ./ports/package.sh
|
PACKAGE_SCRIPT := ./ports/package.sh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Patch submodules
|
# Pull all submodules
|
||||||
|
update:
|
||||||
|
git submodule update --init
|
||||||
|
|
||||||
|
# Patch submodules (issue update first)
|
||||||
patch:
|
patch:
|
||||||
-git -C ext/lwip apply ../lwip.patch
|
-git -C ext/lwip apply ../lwip.patch
|
||||||
-git -C ext/lwip-contrib apply ../lwip-contrib.patch
|
-git -C ext/lwip-contrib apply ../lwip-contrib.patch
|
||||||
|
|||||||
18
ext/lwip.patch
Normal file
18
ext/lwip.patch
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
diff --git a/src/include/lwip/errno.h b/src/include/lwip/errno.h
|
||||||
|
index 48d6b539..9f59afc8 100644
|
||||||
|
--- a/src/include/lwip/errno.h
|
||||||
|
+++ b/src/include/lwip/errno.h
|
||||||
|
@@ -174,7 +174,12 @@ extern "C" {
|
||||||
|
#define EMEDIUMTYPE 124 /* Wrong medium type */
|
||||||
|
|
||||||
|
#ifndef errno
|
||||||
|
-extern int errno;
|
||||||
|
+//extern int errno;
|
||||||
|
+#if defined(__linux__) && !defined(__ANDROID__)
|
||||||
|
+ #include <errno.h>
|
||||||
|
+#else
|
||||||
|
+ extern int errno;
|
||||||
|
+#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#else /* LWIP_PROVIDE_ERRNO */
|
||||||
Reference in New Issue
Block a user