From b13c55c6053d6b91e5073022df276f3d199398bf Mon Sep 17 00:00:00 2001 From: lottaviano Date: Wed, 22 Dec 2010 14:11:22 +0000 Subject: [PATCH] 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 --- bertos/net/lwip.c | 5 +++++ 1 file changed, 5 insertions(+) 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. */ -- 2.25.1