lwip/0072-add-O_NONBLOCK-and-FIONBIO-when-not-defined.patch
jiangheng e6f98a3d01 lstack_lwip: external api start with do_lwip_ prefix
(cherry picked from commit b52d21f829b60880ea61ac80a38f62f6e1a63c6e)
2023-10-14 16:06:18 +08:00

19 lines
413 B
Diff

diff --git a/src/include/lwipopts.h b/src/include/lwipopts.h
index 5ba123f..baf739e 100644
--- a/src/include/lwipopts.h
+++ b/src/include/lwipopts.h
@@ -244,9 +244,13 @@
#define SO_REUSE 1
+#ifndef FIONBIO
#define FIONBIO 0x5421 /* same as define in asm-generic/ioctls.h */
+#endif
+#ifndef O_NONBLOCK
#define O_NONBLOCK 04000 /* same as define in bits/fcntl-linux.h */
+#endif
#define SIOCSHIWAT 1