From 28922406bbe13f9442a16e4b1ccc19f42e8ebb9b Mon Sep 17 00:00:00 2001
From: jiangheng <jiangheng14@huawei.com>
Date: Mon, 5 Feb 2024 17:26:46 +0800
Subject: add O_NONBLOCK and FIONBIO when not defined

---
 src/include/lwipopts.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/include/lwipopts.h b/src/include/lwipopts.h
index d2ad30b..fbdcbf4 100644
--- a/src/include/lwipopts.h
+++ b/src/include/lwipopts.h
@@ -236,9 +236,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
 
-- 
2.33.0

