Add sw64 architecture
Signed-off-by: wzx <wuzx1226@qq.com>
This commit is contained in:
parent
40c99c9815
commit
51f817c8f2
25
libpcap-Add-sw64-architecture.patch
Normal file
25
libpcap-Add-sw64-architecture.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From 32ba1d898304149fe6c0291b14641f0a136743f6 Mon Sep 17 00:00:00 2001
|
||||
From: wzx <wuzx1226@qq.com>
|
||||
Date: Mon, 7 Nov 2022 09:41:41 +0800
|
||||
Subject: [PATCH] Add sw64 architecture
|
||||
|
||||
Signed-off-by: wzx <wuzx1226@qq.com>
|
||||
---
|
||||
extract.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/extract.h b/extract.h
|
||||
index e776a9e..528b893 100644
|
||||
--- a/extract.h
|
||||
+++ b/extract.h
|
||||
@@ -114,6 +114,7 @@ EXTRACT_BE_S_8(const void *p)
|
||||
}
|
||||
#elif PCAP_IS_AT_LEAST_GNUC_VERSION(2,0) && \
|
||||
(defined(__alpha) || defined(__alpha__) || \
|
||||
+ defined(__sw_64) || defined(__sw_64__) || \
|
||||
defined(__mips) || defined(__mips__))
|
||||
/*
|
||||
* This is MIPS or Alpha, which don't natively handle unaligned loads,
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
Name: libpcap
|
||||
Epoch: 14
|
||||
Version: 1.10.1
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: A system-independent interface for user-level packet capture
|
||||
License: BSD
|
||||
URL: http://www.tcpdump.org
|
||||
@ -9,6 +9,7 @@ Source0: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
|
||||
|
||||
Patch0: 0003-pcap-linux-apparently-ctc-interfaces-on-s390-has-eth.patch
|
||||
Patch1: pcap-config-mitigate-multilib-conflict.patch
|
||||
Patch2: libpcap-Add-sw64-architecture.patch
|
||||
|
||||
BuildRequires: bison flex gcc glibc-kernheaders >= 2.2.0
|
||||
|
||||
@ -63,6 +64,12 @@ export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||
%{_mandir}/man*
|
||||
|
||||
%changelog
|
||||
* Mon Nov 7 2022 wuzx<wuzx1226@qq.com> - 14:1.10.1-3
|
||||
- Type:feature
|
||||
- CVE:NA
|
||||
- SUG:NA
|
||||
- DESC:Add sw64 architecture
|
||||
|
||||
* Fri Feb 18 2022 xihaochen <xihaochen@h-partners.com> - 14:1.10.1-2
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user