add loongarch64 and sw_64 support

This commit is contained in:
panchenbo 2023-10-08 10:52:12 +08:00
parent 3a8ed684d9
commit cac979f71f
2 changed files with 25 additions and 3 deletions

View File

@ -0,0 +1,18 @@
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

View File

@ -4,7 +4,7 @@
Summary: lwip is a small independent implementation of the TCP/IP protocol suite
Name: lwip
Version: 2.1.3
Release: 76
Release: 77
License: BSD
URL: http://savannah.nongnu.org/projects/lwip/
Source0: http://download.savannah.nongnu.org/releases/lwip/%{name}-%{version}.zip
@ -83,12 +83,13 @@ Patch9067: 0068-enable-UDP-CKSUM-in-lwip.patch
Patch9068: 0069-add-error-check-in-hugepage_init-and-sys_mbox_free.patch
Patch9069: 0070-add-CHECKSUM_UDP-when-not-support-OFFLOAD_UDP_CHECKS.patch
Patch9070: 0071-fix-pbuf-tot_len-incorrect-after-pbuf_split_64k-is-c.patch
Patch9071: 0071-add-O_NONBLOCK-and-FIONBIO-when-not-defined.patch
BuildRequires: gcc-c++ dos2unix dpdk-devel
#Requires:
ExclusiveArch: x86_64 aarch64
ExclusiveArch: x86_64 aarch64 loongarch64 sw_64
%description
lwip is a small independent implementation of the TCP/IP protocol suite.
@ -105,7 +106,7 @@ cd %{_builddir}/%{name}-%{version}/src
%install
cd %{_builddir}/%{name}-%{version}/src
%make_install
%make_install INSTALL_LIB=%{buildroot}%{_libdir}
%files
%defattr(0644,root,root)
@ -113,6 +114,9 @@ cd %{_builddir}/%{name}-%{version}/src
%{_libdir}/liblwip.a
%changelog
* Sun Oct 08 2023 panchenbo <panchenbo@kylinsec.com.cn> - 2.1.3-77
- add O_NONBLOCK and FIONBIO when not defined
* Fri Sep 15 2023 jiangheng <jiangheng14@huawei.com> - 2.1.3-76
- fix pbuf->tot_len incorrect after pbuf_split_64k is called