Revert fixes "bug #50162: Minor bug in errno.h"

They are a breaking change :-(
This reverts commit abef0b44a8.
This commit is contained in:
Dirk Ziegelmeier 2017-02-02 08:42:09 +01:00
parent e8d5499d72
commit 29b7c75a72
2 changed files with 1 additions and 9 deletions

View File

@ -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 */

View File

@ -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 <errno.h> or
* define LWIP_ERRNO_INCLUDE to <errno.h> 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.