mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-16 21:26:43 +08:00
fixed bug #35928 BSD sockets functions must set errno for POSIX-compliance (patch by Mason)
This commit is contained in:
@@ -1493,6 +1493,13 @@
|
||||
#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.
|
||||
*/
|
||||
#ifndef LWIP_SOCKET_SET_ERRNO
|
||||
#define LWIP_SOCKET_SET_ERRNO 1
|
||||
#endif
|
||||
|
||||
/**
|
||||
* LWIP_COMPAT_SOCKETS==1: Enable BSD-style sockets functions names.
|
||||
* (only used if you use sockets.c)
|
||||
|
||||
Reference in New Issue
Block a user