mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-20 07:06:53 +08:00
Removed LWIP_SOCKET_SET_ERRNO - errno is always set - if it doesn't exist, it must be provided by the port
This commit is contained in:
@@ -1849,13 +1849,6 @@
|
||||
#define LWIP_SOCKET 1
|
||||
#endif
|
||||
|
||||
/** 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_COMPAT_SOCKETS==1: Enable BSD-style sockets functions names through defines.
|
||||
* LWIP_COMPAT_SOCKETS==2: Same as ==1 but correctly named functions are created.
|
||||
|
||||
@@ -90,13 +90,9 @@ struct lwip_sock {
|
||||
#endif
|
||||
};
|
||||
|
||||
#if LWIP_SOCKET_SET_ERRNO
|
||||
#ifndef set_errno
|
||||
#define set_errno(err) do { if (err) { errno = (err); } } while(0)
|
||||
#endif
|
||||
#else /* LWIP_SOCKET_SET_ERRNO */
|
||||
#define set_errno(err)
|
||||
#endif /* LWIP_SOCKET_SET_ERRNO */
|
||||
|
||||
#if !LWIP_TCPIP_CORE_LOCKING
|
||||
/** Maximum optlen used by setsockopt/getsockopt */
|
||||
|
||||
Reference in New Issue
Block a user