lwip/0071-add-O_NONBLOCK-and-FIONBIO-when-not-defined.patch
panchenbo b7408ba486 add loongarch64 and sw_64 support
(cherry picked from commit cac979f71f3e325a021da75ddeb0f2b158697b02)
2023-10-13 09:53:06 +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