diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h index e9a81821..0ca2dd01 100644 --- a/src/include/lwip/opt.h +++ b/src/include/lwip/opt.h @@ -1744,13 +1744,19 @@ #define LWIP_SOCKET 1 #endif -/* LWIP_SOCKET_SET_ERRNO==1: Set errno when socket functions cannot complete +/** LWIP_SOCKET_SET_ERRNO==1: Set errno when socket functions cannot complete * successfully, as required by POSIX. Default is POSIX-compliant. */ #if !defined LWIP_SOCKET_SET_ERRNO || defined __DOXYGEN__ #define LWIP_SOCKET_SET_ERRNO 1 #endif +/** LWIP_PROVIDE_ERRNO==1: Let lwIP provide ERRNO values. + */ +#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.