Преглед изворни кода

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>
Our Air Quality пре 8 година
родитељ
комит
0794d88f09
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/include/lwip/sockets.h

+ 1 - 1
src/include/lwip/sockets.h

@@ -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