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:
Our Air Quality 2017-10-08 19:55:40 +11:00 committed by Dirk Ziegelmeier
parent 856b0c3260
commit 0794d88f09

View File

@ -442,7 +442,7 @@ typedef struct ipv6_mreq {
#define O_NONBLOCK 1 /* nonblocking I/O */
#endif
#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
#ifndef O_RDONLY
#define O_RDONLY 2