mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
If undefined then define O_NDELAY in terms of O_NONBLOCK.
Current newlib does not define O_NDELAY, but it needs to be the same as O_NONBLOCK rather than using the lwip value of 1. Signed-off-by: Dirk Ziegelmeier <dirk@ziegelmeier.net>
This commit is contained in:
parent
856b0c3260
commit
0794d88f09
@ -442,7 +442,7 @@ typedef struct ipv6_mreq {
|
|||||||
#define O_NONBLOCK 1 /* nonblocking I/O */
|
#define O_NONBLOCK 1 /* nonblocking I/O */
|
||||||
#endif
|
#endif
|
||||||
#ifndef O_NDELAY
|
#ifndef O_NDELAY
|
||||||
#define O_NDELAY 1 /* same as O_NONBLOCK, for compatibility */
|
#define O_NDELAY O_NONBLOCK /* same as O_NONBLOCK, for compatibility */
|
||||||
#endif
|
#endif
|
||||||
#ifndef O_RDONLY
|
#ifndef O_RDONLY
|
||||||
#define O_RDONLY 2
|
#define O_RDONLY 2
|
||||||
|
Loading…
Reference in New Issue
Block a user