lwip/0072-add-O_NONBLOCK-and-FIONBIO-when-not-defined.patch
jiangheng c341686f0a adapt lwip-2.2.0
(cherry picked from commit 63c40c2ad66e5b32d96cecad0b123db28783ae5c)
2024-02-17 14:46:44 +08:00

31 lines
699 B
Diff

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