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.