summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorJoseph Henry <[email protected]>2018-07-27 09:53:08 -0700
committerJoseph Henry <[email protected]>2018-07-27 09:53:08 -0700
commit6e086ed3fa9692b0be853849340bc3ed3614fbcc (patch)
treec92ea13156a5601707d01bee9fde79e2d58f1169 /ext
parent6fec6621505c5c709e47a9e13c9e32567db457a5 (diff)
Updated lwip.patch for Linux compatibility, CMakeLists.txt, and fixed other minor compile-time warnings
Diffstat (limited to 'ext')
-rw-r--r--ext/lwip.patch21
1 files changed, 19 insertions, 2 deletions
diff --git a/ext/lwip.patch b/ext/lwip.patch
index 04482fd..0a651b3 100644
--- a/ext/lwip.patch
+++ b/ext/lwip.patch
@@ -1,13 +1,30 @@
diff --git a/src/api/sockets.c b/src/api/sockets.c
-index b7632489..f6ab59f6 100644
+index b7632489..786a294e 100644
--- a/src/api/sockets.c
+++ b/src/api/sockets.c
@@ -44,6 +44,8 @@
*
*/
-+#include <errno.h>
++//#include <errno.h>
+
#include "lwip/opt.h"
#if LWIP_SOCKET /* don't build if not configured for use in lwipopts.h */
+diff --git a/src/include/lwip/errno.h b/src/include/lwip/errno.h
+index 641cffb0..cec43f7f 100644
+--- a/src/include/lwip/errno.h
++++ b/src/include/lwip/errno.h
+@@ -174,7 +174,11 @@ extern "C" {
+ #define EMEDIUMTYPE 124 /* Wrong medium type */
+
+ #ifndef errno
+-extern int errno;
++#if defined(__linux__) && !defined(__ANDROID__)
++ #include <errno.h>
++#else
++ extern int errno;
++#endif
+ #endif
+
+ #else /* LWIP_PROVIDE_ERRNO */