mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-09 17:13:49 +08:00
Revert fixes "bug #50162: Minor bug in errno.h"
They are a breaking change :-(
This reverts commit abef0b44a8.
This commit is contained in:
@@ -43,7 +43,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LWIP_PROVIDE_ERRNO
|
#ifdef LWIP_PROVIDE_ERRNO
|
||||||
|
|
||||||
#define EPERM 1 /* Operation not permitted */
|
#define EPERM 1 /* Operation not permitted */
|
||||||
#define ENOENT 2 /* No such file or directory */
|
#define ENOENT 2 /* No such file or directory */
|
||||||
|
|||||||
@@ -1751,14 +1751,6 @@
|
|||||||
#define LWIP_SOCKET_SET_ERRNO 1
|
#define LWIP_SOCKET_SET_ERRNO 1
|
||||||
#endif
|
#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==1: Enable BSD-style sockets functions names through defines.
|
||||||
* LWIP_COMPAT_SOCKETS==2: Same as ==1 but correctly named functions are created.
|
* LWIP_COMPAT_SOCKETS==2: Same as ==1 but correctly named functions are created.
|
||||||
|
|||||||
Reference in New Issue
Block a user