From: lottaviano Date: Wed, 22 Dec 2010 14:11:22 +0000 (+0000) Subject: Fix lwip compilation with arm-2010.09-51- toolchain X-Git-Tag: 2.7.0~316 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=b13c55c6053d6b91e5073022df276f3d199398bf;hp=1545cffc84576287b43e3f873eed0df3c8f8c20a;p=bertos.git Fix lwip compilation with arm-2010.09-51- toolchain The error ESHUTDOWN was not recognized with the latest arm toolchain because it requires a particular define. This patch defines the __LINUX_ERRNO_EXTENSIONS__ macro at the top of the lwip.c file because it's required only to compile lwip. If needed, it should be defined only for arm toolchains. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4650 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/net/lwip.c b/bertos/net/lwip.c index c95254e0..8adb25b8 100644 --- a/bertos/net/lwip.c +++ b/bertos/net/lwip.c @@ -34,6 +34,11 @@ * \author Andrea Righi */ +/* + * Required by arm-2010.09-51-arm-none-eabi toolchain + */ +#define __LINUX_ERRNO_EXTENSIONS__ + /* XXX: exclude all the lwIP stuff from the BeRTOS documentation for now */ #ifndef __doxygen__ /* Ensure that the lwIP compile-time options are included first. */