Fix lwip compilation with arm-2010.09-51- toolchain
authorlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 22 Dec 2010 14:11:22 +0000 (14:11 +0000)
committerlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 22 Dec 2010 14:11:22 +0000 (14:11 +0000)
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

index c95254e011ee69f413a4a940ed301ba9fc6a0f5d..8adb25b876559914c34992395ace3c665591557f 100644 (file)
  * \author Andrea Righi        <arighi@develer.com>
  */
 
+/*
+ * 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. */