From 29b7c75a7232a33a158ee529d4c4834b0803dec7 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Thu, 2 Feb 2017 08:42:09 +0100 Subject: [PATCH] Revert fixes "bug #50162: Minor bug in errno.h" They are a breaking change :-( This reverts commit abef0b44a86eef173c8f32bea3d4966c02371b87. --- src/include/lwip/errno.h | 2 +- src/include/lwip/opt.h | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/include/lwip/errno.h b/src/include/lwip/errno.h index 20e43759..641cffb0 100644 --- a/src/include/lwip/errno.h +++ b/src/include/lwip/errno.h @@ -43,7 +43,7 @@ extern "C" { #endif -#if LWIP_PROVIDE_ERRNO +#ifdef LWIP_PROVIDE_ERRNO #define EPERM 1 /* Operation not permitted */ #define ENOENT 2 /* No such file or directory */ diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h index fd779c67..99511984 100644 --- a/src/include/lwip/opt.h +++ b/src/include/lwip/opt.h @@ -1751,14 +1751,6 @@ #define LWIP_SOCKET_SET_ERRNO 1 #endif -/** LWIP_PROVIDE_ERRNO==1: Let lwIP provide ERRNO values and the 'errno' variable. - * If this is disabled, cc.h must either define 'errno', include or - * define LWIP_ERRNO_INCLUDE to or equivalent. - */ -#if !defined LWIP_PROVIDE_ERRNO || defined __DOXYGEN__ -#define LWIP_PROVIDE_ERRNO 0 -#endif - /** * LWIP_COMPAT_SOCKETS==1: Enable BSD-style sockets functions names through defines. * LWIP_COMPAT_SOCKETS==2: Same as ==1 but correctly named functions are created.