Fix build failue in err.h reported by Axel Lin

In file included from ../../../../lwip/src/include/lwip/sockets.h:49:0,
                 from ../../../../lwip/src/core/init.c:47:
../../../../lwip/src/include/lwip/errno.h:46:5: error:
"LWIP_PROVIDE_ERRNO" is not defined [-Werror=undef]
 #if LWIP_PROVIDE_ERRNO
     ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
../Common.mk:93: recipe for target 'init.o' failed
make: *** [init.o] Error 1
This commit is contained in:
Dirk Ziegelmeier 2017-01-31 08:35:54 +01:00
parent 2e528ad510
commit a1df0c5d77

View File

@ -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.